Interface CachingTier.Listener<K,​V>

  • Type Parameters:
    K -
    V -
    Enclosing interface:
    CachingTier<K,​V>

    public static interface CachingTier.Listener<K,​V>
    A listener that will be notified when eviction of a mapping happens
    • Method Detail

      • evicted

        void evicted​(K key,
                     V value)
        Invoked when a mapping is evicted.
        Parameters:
        key - the key evicted
        value - the value evicted