Interface CacheProviderFactory.EvictionListener<K,V>

Type Parameters:
K - the type of cache key
V - the type of cache entries
Enclosing interface:
CacheProviderFactory<K,V>

public static interface CacheProviderFactory.EvictionListener<K,V>
Interface for a cache eviction listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEviction(K key, V value, String reason)
    Called when an entry is evicted from the cache.
  • Method Details

    • onEviction

      void onEviction(K key, V value, String reason)
      Called when an entry is evicted from the cache.
      Parameters:
      key - the cache key
      value - the cached value
      reason - the reason for the eviction