|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvictionPolicy
Generic eviction policy interface.
None of the Eviction classes are thread safe. It is assumed that an individual instance of an EvictionPolicy/ EvictionAlgorithm/EvictionQueue/EvictionConfiguration are only operated on by one thread at any given time.
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 a node form the underlying cache. |
java.lang.Object |
getCacheData(Fqn fqn,
java.lang.Object key)
|
java.util.Set |
getChildrenNames(Fqn fqn)
Return children names as Objects |
EvictionAlgorithm |
getEvictionAlgorithm()
Get the associated EvictionAlgorithm used by the EvictionPolicy. |
java.lang.Class |
getEvictionConfigurationClass()
The EvictionConfiguration implementation class used by this EvictionPolicy. |
boolean |
hasChild(Fqn fqn)
Is this a leaf node? |
Method Detail |
---|
void evict(Fqn fqn) throws java.lang.Exception
fqn
- DataNode corresponds to this fqn.
java.lang.Exception
java.util.Set getChildrenNames(Fqn fqn)
fqn
-
boolean hasChild(Fqn fqn)
fqn
-
java.lang.Object getCacheData(Fqn fqn, java.lang.Object key)
void configure(TreeCache cache)
EvictionAlgorithm getEvictionAlgorithm()
java.lang.Class getEvictionConfigurationClass()
boolean canIgnoreEvent(Fqn fqn)
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 |