|
||||||||||
| 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.LRUAlgorithm
public class LRUAlgorithm
Least recently Used algorithm to purge old data. Note that this algorithm is not thread-safe.
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm |
|---|
allowTombstones, cache, configuration, evictionActionPolicy, evictionAlgorithmConfig, evictionQueue, recycleQueue, regionFqn |
| Constructor Summary | |
|---|---|
LRUAlgorithm()
|
|
| Method Summary | |
|---|---|
protected void |
evict(NodeEntry ne)
|
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 void |
prune()
|
protected EvictionQueue |
setupEvictionQueue()
This method will create an EvictionQueue implementation and prepare it for use. |
protected boolean |
shouldEvictNode(NodeEntry entry)
This method will check whether the given node should be evicted or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LRUAlgorithm()
| Method Detail |
|---|
protected EvictionQueue setupEvictionQueue()
throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue in class BaseEvictionAlgorithmEvictionException - if there are problemsEvictionQueueprotected boolean shouldEvictNode(NodeEntry entry)
BaseEvictionAlgorithm
shouldEvictNode in class BaseEvictionAlgorithmentry - NodeEntry to test eviction for.
protected void evict(NodeEntry ne)
evict in class BaseEvictionAlgorithm
protected void prune()
throws EvictionException
prune in class BaseEvictionAlgorithmEvictionExceptionpublic java.lang.Class<? extends EvictionAlgorithmConfig> getConfigurationClass()
EvictionAlgorithmEvictionAlgorithmConfig 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 | |||||||||