@ThreadSafe
public interface EvictionManager<K,V>
EvictionManager.processEviction()
is called periodically by the eviction thread (which can be configured using
org.infinispan.config.FluentConfiguration.ExpirationConfig#wakeUpInterval(Long)
and org.infinispan.config.GlobalConfiguration#setEvictionScheduledExecutorFactoryClass(String)
).
If the eviction thread is disabled - by setting org.infinispan.config.FluentConfiguration.ExpirationConfig#wakeUpInterval(Long)
to 0 -
then this method could be called directly, perhaps by any other maintenance thread that runs periodically in the application.
Note that this method is a no-op if the eviction strategy configured is EvictionStrategy.NONE
.
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
void |
onEntryEviction(Map<? extends K,InternalCacheEntry<? extends K,? extends V>> evicted) |
void |
processEviction()
Processes the eviction event queue.
|
void processEviction()
boolean isEnabled()
void onEntryEviction(Map<? extends K,InternalCacheEntry<? extends K,? extends V>> evicted)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.