|
||||||||||
| 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.BaseSortedEvictionAlgorithm
org.jboss.cache.eviction.ElementSizeAlgorithm
public class ElementSizeAlgorithm
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm |
|---|
evictionQueue, recycleQueue, region |
| Constructor Summary | |
|---|---|
ElementSizeAlgorithm()
|
|
| 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 ne)
This method will check whether the given node should be evicted or not. |
| Methods inherited from class org.jboss.cache.eviction.BaseSortedEvictionAlgorithm |
|---|
process, processQueues, resortEvictionQueue |
| Methods inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm |
|---|
emptyRecycleQueue, evict, evictCacheNode, getEvictionQueue, initialize, isNodeInUseAndNotTimedOut, processAddedElement, processAddedNodes, processMarkInUseNodes, processRemovedElement, processRemovedNodes, processUnmarkInUseNodes, 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, resetEvictionQueue |
| Constructor Detail |
|---|
public ElementSizeAlgorithm()
| Method Detail |
|---|
protected EvictionQueue setupEvictionQueue(Region region)
throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue in class BaseEvictionAlgorithmregion - Region to setup an eviction queue for.
EvictionExceptionEvictionQueueprotected boolean shouldEvictNode(NodeEntry ne)
BaseEvictionAlgorithm
shouldEvictNode in class BaseEvictionAlgorithmne - NodeEntry to test eviction for.
protected void prune()
throws EvictionException
prune in class BaseEvictionAlgorithmEvictionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||