|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 EvictionAlgorithmpublic void setEvictionActionPolicy(EvictionActionPolicy evictionActionPolicy)
EvictionAlgorithm
setEvictionActionPolicy in interface EvictionAlgorithmevictionActionPolicy - to set
public void assignToRegion(Fqn fqn,
CacheSPI<?,?> cache,
EvictionAlgorithmConfig evictionAlgorithmConfig,
Configuration configuration)
EvictionAlgorithm
assignToRegion in interface EvictionAlgorithmfqn - 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
EvictionAlgorithmEvictionEvent
passed in.
process in interface EvictionAlgorithmqueue - to process
EvictionExceptionpublic void resetEvictionQueue()
EvictionAlgorithm
resetEvictionQueue in interface EvictionAlgorithmpublic boolean canIgnoreEvent(EvictionEvent.Type eventType)
EvictionAlgorithm
canIgnoreEvent in interface EvictionAlgorithmeventType - event type to test for
public void initialize()
EvictionAlgorithm
initialize in interface EvictionAlgorithmpublic Class<? extends EvictionAlgorithmConfig> getConfigurationClass()
EvictionAlgorithmEvictionAlgorithmConfig 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 | |||||||||