org.jboss.cache.eviction
Class FIFOPolicy

java.lang.Object
  extended by org.jboss.cache.eviction.BaseEvictionPolicy
      extended by org.jboss.cache.eviction.FIFOPolicy
All Implemented Interfaces:
EvictionPolicy

public class FIFOPolicy
extends BaseEvictionPolicy
implements EvictionPolicy

Eviction policy based on the FIFO algorithm where users can specify the max number of nodes.

Version:
$Revision: 1.3 $
Author:
Daniel Huang (dhuang@jboss.org), Morten Kvistgaard

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
cache_
 
Constructor Summary
FIFOPolicy()
           
 
Method Summary
 EvictionAlgorithm getEvictionAlgorithm()
          Get the associated EvictionAlgorithm used by the EvictionPolicy.
 java.lang.Class getEvictionConfigurationClass()
          The EvictionConfiguration implementation class used by this EvictionPolicy.
 
Methods inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
canIgnoreEvent, configure, evict, getCacheData, getChildrenNames, hasChild
 
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.EvictionPolicy
canIgnoreEvent, configure, evict, getCacheData, getChildrenNames, hasChild
 

Constructor Detail

FIFOPolicy

public FIFOPolicy()
Method Detail

getEvictionAlgorithm

public EvictionAlgorithm getEvictionAlgorithm()
Description copied from interface: EvictionPolicy
Get the associated EvictionAlgorithm used by the EvictionPolicy.

This relationship should be 1-1.

Specified by:
getEvictionAlgorithm in interface EvictionPolicy
Returns:
An EvictionAlgorithm implementation.

getEvictionConfigurationClass

public java.lang.Class getEvictionConfigurationClass()
Description copied from interface: EvictionPolicy
The EvictionConfiguration implementation class used by this EvictionPolicy.

Specified by:
getEvictionConfigurationClass in interface EvictionPolicy
Returns:
EvictionConfiguration implementation class.


Copyright 1998-2005 JBoss Inc . All Rights Reserved.