| 
 | ||||||||||
| 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.MRUAlgorithm
public class MRUAlgorithm
Most Recently Used Algorithm.
This algorithm will evict the most recently used cache entries from cache. Note: None of the Eviction classes are thread safe. It is assumed that an individual instance of an EvictionPolicy/ EvictionAlgorithm/EvictionQueue/EvictionConfiguration are only operated on by one thread at any given time.
| Field Summary | 
|---|
| Fields inherited from class org.jboss.cache.eviction.BaseEvictionAlgorithm | 
|---|
| allowTombstones, cache, configuration, evictionActionPolicy, evictionAlgorithmConfig, evictionQueue, recycleQueue, regionFqn | 
| Constructor Summary | |
|---|---|
| MRUAlgorithm() | |
| Method Summary | |
|---|---|
|  Class<? extends EvictionAlgorithmConfig> | getConfigurationClass()This is a helper so that the XML parser will be able to select and use the correct EvictionAlgorithmConfigimplementation
 class corresponding to this EvictionAlgorithm. | 
| protected  void | processVisitedNodes(EvictionEvent evictedEventNode)Visit a node in cache. | 
| protected  EvictionQueue | setupEvictionQueue()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 java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public MRUAlgorithm()
| Method Detail | 
|---|
protected EvictionQueue setupEvictionQueue()
                                    throws EvictionException
BaseEvictionAlgorithm
setupEvictionQueue in class BaseEvictionAlgorithmEvictionException - if there are problemsEvictionQueueprotected boolean shouldEvictNode(NodeEntry ne)
BaseEvictionAlgorithm
shouldEvictNode in class BaseEvictionAlgorithmne - NodeEntry to test eviction for.
protected void processVisitedNodes(EvictionEvent evictedEventNode)
                            throws EvictionException
BaseEvictionAlgorithm
processVisitedNodes in class BaseEvictionAlgorithmEvictionExceptionpublic 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 | |||||||||