|
||||||||||
| 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 |
|---|
evictionQueue, recycleQueue, region |
| Constructor Summary | |
|---|---|
FIFOAlgorithm()
|
|
| Method Summary | |
|---|---|
protected EvictionQueue |
setupEvictionQueue(Region region)
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 org.jboss.cache.eviction.BaseEvictionAlgorithm |
|---|
emptyRecycleQueue, evict, evictCacheNode, getEvictionQueue, initialize, isNodeInUseAndNotTimedOut, process, processAddedElement, processAddedNodes, processMarkInUseNodes, processQueues, processRemovedElement, processRemovedNodes, processUnmarkInUseNodes, processVisitedNodes, prune, resetEvictionQueue, toString |
| 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(Region region)
throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue in class BaseEvictionAlgorithmregion - MarshRegion to setup an eviction queue for.
EvictionExceptionEvictionQueueprotected boolean shouldEvictNode(NodeEntry ne)
shouldEvictNode in class BaseEvictionAlgorithmne - NodeEntry to test eviction for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||