|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.cache.eviction.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 EvictionPolicyfqn - The fqn of a node in cache.
java.lang.Exceptionpublic java.util.Set getChildrenNames(Fqn fqn)
getChildrenNames in interface EvictionPolicyfqn - Get child names for given Fqn in cache.
public boolean hasChild(Fqn fqn)
EvictionPolicy
hasChild in interface EvictionPolicyfqn -
public java.lang.Object getCacheData(Fqn fqn,
java.lang.Object key)
getCacheData in interface EvictionPolicypublic void configure(TreeCache cache)
EvictionPolicy
configure in interface EvictionPolicypublic boolean canIgnoreEvent(Fqn fqn)
EvictionPolicy
canIgnoreEvent in interface EvictionPolicyfqn - 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 | ||||||||||