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 CompletionStage<Void>
onEntryEviction(Map<K,Map.Entry<K,V>> evicted)
Handles notifications of evicted entriesCompletionStage<Void>
onEntryEviction(Map<K,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 CompletionStage<Void> onEntryEviction(Map<K,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
CompletionStage<Void> onEntryEviction(Map<K,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
-
-