|
|||||||||||
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
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 |
evictionQueue, recycleQueue, region |
Constructor Summary | |
LRUAlgorithm()
|
Method Summary | |
protected void |
prune()
|
protected EvictionQueue |
setupEvictionQueue(Region region)
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 org.jboss.cache.eviction.BaseEvictionAlgorithm |
emptyRecycleQueue, evict, evictCacheNode, getEvictionQueue, initialize, process, processAddedNodes, processQueues, processRemovedNodes, processVisitedNodes, resetEvictionQueue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.cache.eviction.EvictionAlgorithm |
getEvictionQueue, process, resetEvictionQueue |
Constructor Detail |
public LRUAlgorithm()
Method Detail |
protected EvictionQueue setupEvictionQueue(Region region) throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue
in class BaseEvictionAlgorithm
region
- Region to setup an eviction queue for.
EvictionException
EvictionQueue
protected boolean shouldEvictNode(NodeEntry entry)
BaseEvictionAlgorithm
shouldEvictNode
in class BaseEvictionAlgorithm
entry
- NodeEntry to test eviction for.
protected void prune() throws EvictionException
prune
in class BaseEvictionAlgorithm
EvictionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |