org.ehcache.core.events
Interface StoreEventSink<K,V>


public interface StoreEventSink<K,V>

Interface on which Store operations are to record events.


Method Summary
 void created(K key, V value)
          Indicates a mapping was created.
 void evicted(K key, V value)
          Indicates a mapping was evicted.
 void expired(K key, V value)
          Indicates the mapping was expired.
 void removed(K key, V value)
          Indicates the mapping was removed.
 void updated(K key, V oldValue, V newValue)
          Indicates the mapping was updated.
 

Method Detail

removed

void removed(K key,
             V value)
Indicates the mapping was removed.

Parameters:
key - removed key
value - removed value

updated

void updated(K key,
             V oldValue,
             V newValue)
Indicates the mapping was updated.

Parameters:
key - the updated key
oldValue - the old value
newValue - the new value

expired

void expired(K key,
             V value)
Indicates the mapping was expired.

Parameters:
key - the expired key
value - the expired value

created

void created(K key,
             V value)
Indicates a mapping was created.

Parameters:
key - the created key
value - the created value

evicted

void evicted(K key,
             V value)
Indicates a mapping was evicted.

Parameters:
key - the evicted key
value - the evicted value