org.ehcache.events
Interface StoreEventListener<K,V>


public interface StoreEventListener<K,V>


Method Summary
 void onEviction(K key, Store.ValueHolder<V> valueHolder)
          Called when an entry gets evicted during a org.ehcache.spi.cache.Store operation..
 void onExpiration(K key, Store.ValueHolder<V> valueHolder)
          Called when an entry gets expired during a org.ehcache.spi.cache.Store operation..
 

Method Detail

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 evicted
valueHolder - 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 expired
valueHolder - the Store.ValueHolder that is expired