org.ehcache.event
Interface CacheEventListener<K,V>

Type Parameters:
K - the type of the keys used to access data within the cache
V - the type of the values held within the cache
All Known Implementing Classes:
CacheEventAdapter, EventListenerWrapper

public interface CacheEventListener<K,V>

Contract for users that want to listen on CacheEvents.


Method Summary
 void onEvent(CacheEvent<K,V> event)
          Invoked on any CacheEvent matching the EventType constrain used when the listener was registered.
 

Method Detail

onEvent

void onEvent(CacheEvent<K,V> event)
Invoked on any CacheEvent matching the EventType constrain used when the listener was registered. This method is invoked according to the EventOrdering and EventFiring requirement desired at registration time.

Parameters:
event - the actual CacheEvent