|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 EvictionPolicy
public void evict(Fqn fqn) throws Exception
EvictionPolicy
evict
in interface EvictionPolicy
fqn
- Node corresponds to this fqn.
Exception
public Set getChildrenNames(Fqn fqn)
EvictionPolicy
getChildrenNames
in interface EvictionPolicy
fqn
-
public boolean hasChild(Fqn fqn)
EvictionPolicy
hasChild
in interface EvictionPolicy
fqn
-
public Object getCacheData(Fqn fqn, Object key)
getCacheData
in interface EvictionPolicy
public int getWakeupIntervalSeconds()
EvictionPolicy
getWakeupIntervalSeconds
in interface EvictionPolicy
public 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 |