org.jboss.cache.eviction
Class FIFOPolicy

java.lang.Object
  extended byorg.jboss.cache.eviction.BaseEvictionPolicy (src) 
      extended byorg.jboss.cache.eviction.LRUPolicy (src) 
          extended byorg.jboss.cache.eviction.FIFOPolicy
All Implemented Interfaces:
EvictionPolicy (src) , TreeCacheListener (src)

public class FIFOPolicy
extends LRUPolicy (src)

Eviction policy based on the FIFO algorithm where users can specify the max number of nodes and time-to-live for the nodes.


Field Summary
 
Fields inherited from class org.jboss.cache.eviction.LRUPolicy (src)
log_
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy (src)
cache_, regionManager_
 
Constructor Summary
FIFOPolicy()
           
 
Method Summary
protected  EvictionAlgorithm (src) getEvictionAlgorithm()
           
 void nodeModified(Fqn (src)  fqn)
          Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.
 void nodeVisited(Fqn (src)  fqn)
          Called when a node is visisted, i.e., get().
 
Methods inherited from class org.jboss.cache.eviction.LRUPolicy (src)
cacheStarted, cacheStopped, configure, getWakeupIntervalSeconds, nodeAdded, nodeCreated, nodeEvicted, nodeLoaded, nodeRemoved, viewChange
 
Methods inherited from class org.jboss.cache.eviction.BaseEvictionPolicy (src)
evict, getCacheData, getChildrenNames, getRegions, hasChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIFOPolicy

public FIFOPolicy()
Method Detail

getEvictionAlgorithm

protected EvictionAlgorithm (src)  getEvictionAlgorithm()
Overrides:
getEvictionAlgorithm in class LRUPolicy (src)

nodeModified

public void nodeModified(Fqn (src)  fqn)
Description copied from interface: TreeCacheListener (src)
Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.

Specified by:
nodeModified in interface TreeCacheListener (src)
Overrides:
nodeModified in class LRUPolicy (src)

nodeVisited

public void nodeVisited(Fqn (src)  fqn)
Description copied from interface: TreeCacheListener (src)
Called when a node is visisted, i.e., get().

Specified by:
nodeVisited in interface TreeCacheListener (src)
Overrides:
nodeVisited in class LRUPolicy (src)