K
- the key type for the observed cacheV
- the value type for the observed cachepublic interface CacheEventListener<K,V>
CacheEvent
s from a
Cache
.Modifier and Type | Method and Description |
---|---|
void |
onEvent(CacheEvent<? extends K,? extends V> event)
Invoked on
CacheEvent firing. |
void onEvent(CacheEvent<? extends K,? extends V> event)
CacheEvent
firing.
This method is invoked according to the EventOrdering
, EventFiring
and
EventType
requirements provided at listener registration time.
Any exception thrown from this listener will be swallowed and logged but will not prevent other listeners to run.
event
- the actual CacheEvent