|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.eviction.NullEvictionPolicy
@Deprecated public class NullEvictionPolicy
Eviction policy that does nothing and always tells the eviction interceptor an event can be ignored, saving the overhead of constructing and processing event objects. Basically useful as a default policy for a cache or subtree that is shared between multiple usages, some of which don't want eviction.
| Constructor Summary | |
|---|---|
NullEvictionPolicy()
Deprecated. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullEvictionPolicy()
| Method Detail |
|---|
public boolean canIgnoreEvent(Fqn fqn,
EvictionEventType eventType)
true
canIgnoreEvent in interface EvictionPolicyfqn - The Fqn of the node associated with the event.eventType - the type of the event
true 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)
EvictionPolicy
setCache in interface EvictionPolicycache - the cache to setpublic Class<? extends EvictionAlgorithm> modernizePolicy()
modernizePolicy in interface ModernizablePolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||