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 receiveCacheEvents from aCache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEvent(CacheEvent<? extends K,? extends V> event)Invoked onCacheEventfiring.
-
-
-
Method Detail
-
onEvent
void onEvent(CacheEvent<? extends K,? extends V> event)
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
-
-