Interface CacheEntryEvictedListener<K,​V>

    • Method Detail

      • onEntryEvicted

        void onEntryEvicted​(Cache<K,​V> cache,
                            CacheEntry<K,​V> entry)
                     throws Exception
        Called upon eviction of a cache entry. When used as synchronous listener other cache operations can still proceed except for this entry or Cache.removeAll().
        Parameters:
        cache - The cache that generated the event
        entry - Entry containing the recent data
        Throws:
        Exception