|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.eviction.NullEvictionAlgorithm
public class NullEvictionAlgorithm
An eviction algorithm that does nothing - a no-op for everything.
Method Summary | |
---|---|
void |
assignToRegion(Fqn fqn,
CacheSPI<?,?> cache,
EvictionAlgorithmConfig evictionAlgorithmConfig,
Configuration configuration)
Assigns the algorithm instance to a specific region. |
boolean |
canIgnoreEvent(EvictionEvent.Type eventType)
Tests whether the algorithm would ignore certain event types on certain Fqns. |
Class<? extends EvictionAlgorithmConfig> |
getConfigurationClass()
This is a helper so that the XML parser will be able to select and use the correct EvictionAlgorithmConfig implementation
class corresponding to this EvictionAlgorithm. |
EvictionQueue |
getEvictionQueue()
Returns NullEvictionQueue.INSTANCE . |
static NullEvictionAlgorithm |
getInstance()
|
void |
initialize()
Invoked by the region manager when the enclosing region is initialized. |
void |
process(BlockingQueue<EvictionEvent> queue)
Entry point for eviction algorithm. |
void |
resetEvictionQueue()
Reset the whole eviction queue. |
void |
setEvictionActionPolicy(EvictionActionPolicy evictionActionPolicy)
Sets the eviction action policy, so the algorithm knows what to do when a node is to be evicted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NullEvictionAlgorithm getInstance()
public EvictionQueue getEvictionQueue()
NullEvictionQueue.INSTANCE
.
getEvictionQueue
in interface EvictionAlgorithm
public void setEvictionActionPolicy(EvictionActionPolicy evictionActionPolicy)
EvictionAlgorithm
setEvictionActionPolicy
in interface EvictionAlgorithm
evictionActionPolicy
- to setpublic void assignToRegion(Fqn fqn, CacheSPI<?,?> cache, EvictionAlgorithmConfig evictionAlgorithmConfig, Configuration configuration)
EvictionAlgorithm
assignToRegion
in interface EvictionAlgorithm
fqn
- of the region to be assigned tocache
- cache referenceevictionAlgorithmConfig
- configuration for the current algorithm instance.configuration
- for the entire cache.public void process(BlockingQueue<EvictionEvent> queue) throws EvictionException
EvictionAlgorithm
EvictionEvent
passed in.
process
in interface EvictionAlgorithm
queue
- to process
EvictionException
public void resetEvictionQueue()
EvictionAlgorithm
resetEvictionQueue
in interface EvictionAlgorithm
public boolean canIgnoreEvent(EvictionEvent.Type eventType)
EvictionAlgorithm
canIgnoreEvent
in interface EvictionAlgorithm
eventType
- event type to test for
public void initialize()
EvictionAlgorithm
initialize
in interface EvictionAlgorithm
public Class<? extends EvictionAlgorithmConfig> getConfigurationClass()
EvictionAlgorithm
EvictionAlgorithmConfig
implementation
class corresponding to this EvictionAlgorithm. E.g., the FIFOAlgorithm
would return FIFOAlgorithmConfig
.class.
getConfigurationClass
in interface EvictionAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |