@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)
true
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.public void evict(Fqn fqn) throws Exception
evict
in interface EvictionPolicy
fqn
- DataNode corresponds to this fqn.Exception
public EvictionAlgorithm getEvictionAlgorithm()
NullEvictionAlgorithm.INSTANCE
.getEvictionAlgorithm
in interface EvictionPolicy
public Class<? extends EvictionPolicyConfig> getEvictionConfigurationClass()
NullEvictionPolicyConfig
.getEvictionConfigurationClass
in interface EvictionPolicy
public CacheSPI getCache()
getCache
in interface EvictionPolicy
public void setCache(CacheSPI cache)
EvictionPolicy
setCache
in interface EvictionPolicy
cache
- the cache to setpublic Class<? extends EvictionAlgorithm> modernizePolicy()
modernizePolicy
in interface ModernizablePolicy
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.