|
|||||||||||
| 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.
| Field Summary | |
protected TreeCache |
cache_
|
protected RegionManager |
regionManager_
|
| Constructor Summary | |
BaseEvictionPolicy()
|
|
| Method Summary | |
void |
configure(TreeCache cache)
Method called to configure this implementation. |
void |
evict(Fqn fqn)
Evict a node form the underlying cache. |
Object |
getCacheData(Fqn fqn,
Object key)
|
Set |
getChildrenNames(Fqn fqn)
Return children names as Objects |
Region[] |
getRegions()
EvictionPolicy interface implementation |
int |
getWakeupIntervalSeconds()
return eviction thread (if any) wake up interval in seconds. |
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 |
| Field Detail |
protected RegionManager regionManager_
protected TreeCache cache_
| Constructor Detail |
public BaseEvictionPolicy()
| Method Detail |
public Region[] getRegions()
getRegions in interface EvictionPolicypublic void evict(Fqn fqn) throws Exception
EvictionPolicy
evict in interface EvictionPolicyfqn - Node corresponds to this fqn.
Exceptionpublic Set getChildrenNames(Fqn fqn)
EvictionPolicy
getChildrenNames in interface EvictionPolicyfqn -
public boolean hasChild(Fqn fqn)
EvictionPolicy
hasChild in interface EvictionPolicyfqn -
public Object getCacheData(Fqn fqn, Object key)
getCacheData in interface EvictionPolicypublic int getWakeupIntervalSeconds()
EvictionPolicy
getWakeupIntervalSeconds in interface EvictionPolicypublic void configure(TreeCache cache)
EvictionPolicy
configure in interface EvictionPolicy
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||