org.ehcache.events
Interface StoreEventListener<K,V>
public interface StoreEventListener<K,V>
onEviction
void onEviction(K key,
Store.ValueHolder<V> valueHolder)
- Called when an entry gets evicted during a
org.ehcache.spi.cache.Store
operation..
- Parameters:
key
- the key
of the mapping being evictedvalueHolder
- the Store.ValueHolder
being evicted
onExpiration
void onExpiration(K key,
Store.ValueHolder<V> valueHolder)
- Called when an entry gets expired during a
org.ehcache.spi.cache.Store
operation..
- Parameters:
key
- the key
of the mapping that is expiredvalueHolder
- the Store.ValueHolder
that is expired