org.jboss.cache.eviction
Interface EvictionPolicy

All Known Implementing Classes:
BaseEvictionPolicy

public interface EvictionPolicy

Generic eviction policy interface.

Author:
Ben Wang 2-2004

Method Summary
 void configure(TreeCache cache)
          Method called to configure this implementation.
 void evict(Fqn fqn)
          Evict a node form the underlying cache.
 java.lang.Object getCacheData(Fqn fqn, java.lang.Object key)
           
 java.util.Set getChildrenNames(Fqn fqn)
          Return children names as Objects
 Region[] getRegions()
          Return all regions declared.
 int getWakeupIntervalSeconds()
          return eviction thread (if any) wake up interval in seconds.
 boolean hasChild(Fqn fqn)
          Is this a leaf node?
 

Method Detail

getRegions

public Region[] getRegions()
Return all regions declared.

Returns:

evict

public void evict(Fqn fqn)
           throws java.lang.Exception
Evict a node form the underlying cache.

Parameters:
fqn - DataNode corresponds to this fqn.
Throws:
java.lang.Exception

getChildrenNames

public java.util.Set getChildrenNames(Fqn fqn)
Return children names as Objects

Parameters:
fqn -
Returns:

hasChild

public boolean hasChild(Fqn fqn)
Is this a leaf node?

Parameters:
fqn -
Returns:

getCacheData

public java.lang.Object getCacheData(Fqn fqn,
                                     java.lang.Object key)

getWakeupIntervalSeconds

public int getWakeupIntervalSeconds()
return eviction thread (if any) wake up interval in seconds.

Returns:

configure

public void configure(TreeCache cache)
Method called to configure this implementation.



Copyright © 1998-2005 JBoss Inc . All Rights Reserved.