org.ehcache.event
Interface CacheEventListener<K,V>
- Type Parameters:
K - the type of the keys used to access data within the cacheV - the type of the values held within the cache
- All Known Implementing Classes:
- CacheEventAdapter
public interface CacheEventListener<K,V>
Contract for users that want to listen on CacheEvents.
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