|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.eviction.BaseEvictionPolicy
EvictionActionPolicy
@Deprecated public abstract class BaseEvictionPolicy
Base class implementation of EvictionPolicy and TreeCacheListener.
Field Summary | |
---|---|
protected CacheSPI |
cache_
Deprecated. |
Constructor Summary | |
---|---|
BaseEvictionPolicy()
Deprecated. |
Method Summary | |
---|---|
boolean |
canIgnoreEvent(Fqn fqn,
EvictionEventType eventType)
Deprecated. This method will be invoked prior to an event being processed for a node with the specified Fqn. |
void |
evict(Fqn fqn)
Deprecated. Evict the node under given Fqn from cache. |
CacheSPI |
getCache()
Deprecated. |
void |
setCache(CacheSPI cache)
Deprecated. Method called to set the cache in this implementation. |
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 CacheSPI cache_
Constructor Detail |
---|
public BaseEvictionPolicy()
Method Detail |
---|
public void evict(Fqn fqn) throws Exception
evict
in interface EvictionPolicy
fqn
- The fqn of a node in cache.
Exception
public void setCache(CacheSPI cache)
EvictionPolicy
setCache
in interface EvictionPolicy
cache
- the cache to setpublic CacheSPI getCache()
getCache
in interface EvictionPolicy
public boolean canIgnoreEvent(Fqn fqn, EvictionEventType eventType)
EvictionPolicy
event types
in which the particular
eviction algorithm has no interest.
If this method returns false then the event is processed normally
and eviction processing for the node continues. As a result, the event
will be added to the eviction region's
event queue where
at some later point the particular algorithm of the eviction policy
can use it to decide whether to call EvictionPolicy.evict(Fqn)
.
If this method returns true, then the event is ignored and will not factor
in any subsequent eviction processing.
canIgnoreEvent
in interface EvictionPolicy
fqn
- The Fqn of the node associated with the event.eventType
- the type of the event
true
to ignore events of this type for this Fqn,
false
to process events normally.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |