Package org.infinispan.eviction
Interface EvictionManager<K,V>
- All Known Implementing Classes:
EvictionManagerImpl
@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
Modifier and TypeMethodDescriptiondefault CompletionStage<Void>
Handles notifications of evicted entriesonEntryEviction
(Map<K, Map.Entry<K, V>> evicted, FlagAffectedCommand command) Handles notifications of evicted entries based on if the command allow them
-
Method Details
-
onEntryEviction
Handles notifications of evicted entries- Parameters:
evicted
- The entries that were just evicted- Returns:
- stage that when complete the notifications are complete
-
onEntryEviction
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
-