public final class JCacheEvictionListener<K,V> extends Object implements RemovalListener<K,Expirable<V>>
| Constructor and Description |
|---|
JCacheEvictionListener(EventDispatcher<K,V> dispatcher,
JCacheStatisticsMXBean statistics) |
| Modifier and Type | Method and Description |
|---|---|
void |
onRemoval(K key,
@Nullable Expirable<V> expirable,
RemovalCause cause) |
void |
setCache(Cache<K,V> cache)
Sets the cache instance that was created with this listener.
|
public JCacheEvictionListener(EventDispatcher<K,V> dispatcher, JCacheStatisticsMXBean statistics)
public void setCache(Cache<K,V> cache)
cache - the cache that uses this loaderpublic void onRemoval(K key, @Nullable Expirable<V> expirable, RemovalCause cause)
onRemoval in interface RemovalListener<K,Expirable<V>>