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 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 evicted
        command - The command that generated the eviction if applicable
        Returns:
        stage that when complete the notifications are complete