Package org.infinispan.eviction
Interface EvictionManager<K,V>
-
@ThreadSafe public interface EvictionManager<K,V>
Central component that deals with eviction of cache entries. This manager only controls notifications of when entries are evicted.- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.concurrent.CompletionStage<java.lang.Void>
onEntryEviction(java.util.Map<K,java.util.Map.Entry<K,V>> evicted)
Handles notifications of evicted entriesjava.util.concurrent.CompletionStage<java.lang.Void>
onEntryEviction(java.util.Map<K,java.util.Map.Entry<K,V>> evicted, org.infinispan.commands.FlagAffectedCommand command)
Handles notifications of evicted entries based on if the command allow them
-
-
-
Method Detail
-
onEntryEviction
default java.util.concurrent.CompletionStage<java.lang.Void> onEntryEviction(java.util.Map<K,java.util.Map.Entry<K,V>> evicted)
Handles notifications of evicted entries- Parameters:
evicted
- The entries that were just evicted- Returns:
- stage that when complete the notifications are complete
-
onEntryEviction
java.util.concurrent.CompletionStage<java.lang.Void> onEntryEviction(java.util.Map<K,java.util.Map.Entry<K,V>> evicted, org.infinispan.commands.FlagAffectedCommand command)
Handles notifications of evicted entries based on if the command allow them- Parameters:
evicted
- The entries that were just evictedcommand
- The command that generated the eviction if applicable- Returns:
- stage that when complete the notifications are complete
-
-