org.jboss.cache.eviction
Class MRUPolicy

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

public class MRUPolicy
extends BaseEvictionPolicy
implements EvictionPolicy

Most Recently Used Policy.

This algorithm will evict the most recently used cache entries from cache.

Version:
$Revision: 1.1 $
Author:
Daniel Huang (dhuang@jboss.org)

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy
cache_
 
Constructor Summary
MRUPolicy()
           
 
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

MRUPolicy

public MRUPolicy()
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.