org.jboss.cache.eviction
Interface EvictionPolicy

All Known Implementing Classes:
BaseEvictionPolicy (src)

public interface EvictionPolicy

Generic eviction policy interface.


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

Method Detail

getRegions

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

Returns:

evict

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

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

getChildrenNames

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

Parameters:
fqn -
Returns:

hasChild

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

Parameters:
fqn -
Returns:

getCacheData

public java.lang.Object getCacheData(Fqn (src)  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 (src)  cache)
Method called to configure this implementation.