Interface CacheProviderFactory.EvictionListener<K,V>
- Type Parameters:
K- the type of cache keyV- 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 TypeMethodDescriptionvoidonEviction(K key, V value, String reason) Called when an entry is evicted from the cache.
-
Method Details
-
onEviction
Called when an entry is evicted from the cache.- Parameters:
key- the cache keyvalue- the cached valuereason- the reason for the eviction
-