站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 Cache API Documentation 英文版文档

FIFOPolicy (JBoss Cache API) - JBoss 3.2.7 Cache API Documentation 英文版文档


org.jboss.cache.eviction
Class FIFOPolicy

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

public class FIFOPolicy
extends LRUPolicy

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

Author:
Morten Kvistgaard 2004-10

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.LRUPolicy
log_
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
cache_, regionManager_
 
Constructor Summary
FIFOPolicy()
           
 
Method Summary
protected  EvictionAlgorithm getEvictionAlgorithm()
           
 void nodeModified(Fqn fqn)
          Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.
 void nodeVisited(Fqn fqn)
          Called when a node is visisted, i.e., get().
 
Methods inherited from class org.jboss.cache.eviction.LRUPolicy
cacheStarted, cacheStopped, configure, getWakeupIntervalSeconds, nodeAdded, nodeCreated, nodeEvicted, nodeLoaded, nodeRemoved, viewChange
 
Methods inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
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 getEvictionAlgorithm()
Overrides:
getEvictionAlgorithm in class LRUPolicy

nodeModified

public void nodeModified(Fqn fqn)
Description copied from interface: TreeCacheListener
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
Overrides:
nodeModified in class LRUPolicy

nodeVisited

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

Specified by:
nodeVisited in interface TreeCacheListener
Overrides:
nodeVisited in class LRUPolicy


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.