@Deprecated public class NullEvictionPolicy extends Object implements EvictionPolicy, ModernizablePolicy
| Constructor and Description |
|---|
NullEvictionPolicy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canIgnoreEvent(Fqn fqn,
EvictionEventType eventType)
Deprecated.
Returns
true |
void |
evict(Fqn fqn)
Deprecated.
No-op
|
CacheSPI |
getCache()
Deprecated.
|
EvictionAlgorithm |
getEvictionAlgorithm()
Deprecated.
Returns
NullEvictionAlgorithm.INSTANCE. |
Class<? extends EvictionPolicyConfig> |
getEvictionConfigurationClass()
Deprecated.
Returns
NullEvictionPolicyConfig. |
Class<? extends EvictionAlgorithm> |
modernizePolicy()
Deprecated.
|
void |
setCache(CacheSPI cache)
Deprecated.
Method called to set the cache in this implementation.
|
public boolean canIgnoreEvent(Fqn fqn, EvictionEventType eventType)
truecanIgnoreEvent in interface EvictionPolicyfqn - 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.public void evict(Fqn fqn) throws Exception
evict in interface EvictionPolicyfqn - DataNode corresponds to this fqn.Exceptionpublic EvictionAlgorithm getEvictionAlgorithm()
NullEvictionAlgorithm.INSTANCE.getEvictionAlgorithm in interface EvictionPolicypublic Class<? extends EvictionPolicyConfig> getEvictionConfigurationClass()
NullEvictionPolicyConfig.getEvictionConfigurationClass in interface EvictionPolicypublic CacheSPI getCache()
getCache in interface EvictionPolicypublic void setCache(CacheSPI cache)
EvictionPolicysetCache in interface EvictionPolicycache - the cache to setpublic Class<? extends EvictionAlgorithm> modernizePolicy()
modernizePolicy in interface ModernizablePolicyCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.