org.jboss.cache.eviction
Class LFUPolicy

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

public class LFUPolicy
extends BaseEvictionPolicy
implements EvictionPolicy

Least Frequently Used Eviction Policy.

Version:
$Revision: 1.1 $
Author:
Daniel Huang - dhuang@jboss.org - 10/2005

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

LFUPolicy

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