@Deprecated public abstract class BaseEvictionPolicy extends Object implements EvictionPolicy
Constructor and Description |
---|
BaseEvictionPolicy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEvictionAlgorithm, getEvictionConfigurationClass
protected CacheSPI cache_
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 eventtrue
to ignore events of this type for this Fqn,
false
to process events normally.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.