|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.eviction.BaseEvictionPolicy
public abstract class BaseEvictionPolicy
Base class implementation of EvictionPolicy and TreeCacheListener.
Field Summary | |
---|---|
protected TreeCache |
cache_
|
Constructor Summary | |
---|---|
BaseEvictionPolicy()
|
Method Summary | |
---|---|
boolean |
canIgnoreEvent(Fqn fqn)
This method will be invoked prior to an event being processed for a node with the specified Fqn. |
void |
configure(TreeCache cache)
Method called to configure this implementation. |
void |
evict(Fqn fqn)
Evict the node under given Fqn from cache. |
java.lang.Object |
getCacheData(Fqn fqn,
java.lang.Object key)
|
java.util.Set |
getChildrenNames(Fqn fqn)
Return a set of child names under a given Fqn. |
boolean |
hasChild(Fqn fqn)
Is this a leaf node? |
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 |
---|
getEvictionAlgorithm, getEvictionConfigurationClass |
Field Detail |
---|
protected TreeCache cache_
Constructor Detail |
---|
public BaseEvictionPolicy()
Method Detail |
---|
public void evict(Fqn fqn) throws java.lang.Exception
evict
in interface EvictionPolicy
fqn
- The fqn of a node in cache.
java.lang.Exception
public java.util.Set getChildrenNames(Fqn fqn)
getChildrenNames
in interface EvictionPolicy
fqn
- Get child names for given Fqn in cache.
public boolean hasChild(Fqn fqn)
EvictionPolicy
hasChild
in interface EvictionPolicy
public java.lang.Object getCacheData(Fqn fqn, java.lang.Object key)
getCacheData
in interface EvictionPolicy
public void configure(TreeCache cache)
EvictionPolicy
configure
in interface EvictionPolicy
public boolean canIgnoreEvent(Fqn fqn)
EvictionPolicy
canIgnoreEvent
in interface EvictionPolicy
fqn
- The Fqn of the node associated with the event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |