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 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<java.lang.Void> onEntryEviction​(java.util.Map<K,​java.util.Map.Entry<K,​V>> evicted)
      Handles notifications of evicted entries
    • Method Detail

      • onEntryEviction

        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