|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.eviction.BaseEvictionAlgorithm
org.jboss.cache.eviction.FIFOAlgorithm
public class FIFOAlgorithm
First-in-first-out algorithm used to evict nodes.
Field Summary |
---|
Fields inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm |
---|
allowTombstones, cache, configuration, evictionActionPolicy, evictionAlgorithmConfig, evictionQueue, recycleQueue, regionFqn |
Constructor Summary | |
---|---|
FIFOAlgorithm()
|
Method Summary | |
---|---|
java.lang.Class<? extends EvictionAlgorithmConfig> |
getConfigurationClass()
This is a helper so that the XML parser will be able to select and use the correct EvictionAlgorithmConfig implementation
class corresponding to this EvictionAlgorithm. |
protected EvictionQueue |
setupEvictionQueue()
This method will create an EvictionQueue implementation and prepare it for use. |
protected boolean |
shouldEvictNode(NodeEntry ne)
For FIFO, a node should be evicted if the queue size is >= to the configured maxNodes size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FIFOAlgorithm()
Method Detail |
---|
protected EvictionQueue setupEvictionQueue() throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue
in class BaseEvictionAlgorithm
EvictionException
- if there are problemsEvictionQueue
protected boolean shouldEvictNode(NodeEntry ne)
shouldEvictNode
in class BaseEvictionAlgorithm
ne
- NodeEntry to test eviction for.
public java.lang.Class<? extends EvictionAlgorithmConfig> getConfigurationClass()
EvictionAlgorithm
EvictionAlgorithmConfig
implementation
class corresponding to this EvictionAlgorithm. E.g., the FIFOAlgorithm
would return FIFOAlgorithmConfig
.class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |