Package org.ehcache.event
Interface CacheEventListener<K,V>
- Type Parameters:
K- the key type for the observed cacheV- the value type for the observed cache
public interface CacheEventListener<K,V>
Definition of the contract for implementing listeners to receive
CacheEvents from a
Cache.-
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(CacheEvent<? extends K, ? extends V> event) Invoked onCacheEventfiring.
-
Method Details
-
onEvent
Invoked onCacheEventfiring.This method is invoked according to the
EventOrdering,EventFiringandEventTyperequirements provided at listener registration time.Any exception thrown from this listener will be swallowed and logged but will not prevent other listeners to run.
- Parameters:
event- the actualCacheEvent
-