K
- the type of keyV
- the type of valuepublic interface CacheEntryListener<K,V> extends EventListener
Sub-interfaces exist for the various cache events allowing a listener to be created that implements only those listeners it is interested in.
Listeners should be implemented with care. In particular it is important to consider their impact on performance and latency.
Listeners:
Listeners can only throw CacheEntryListenerException
. Caching
implementations must catch any other Exception
from a listener, then
wrap and rethrow it as a CacheEntryListenerException
.
A listener that mutates a cache on the CacheManager may cause a deadlock. Detection and response to deadlocks is implementation specific.
CacheEntryCreatedListener
,
CacheEntryUpdatedListener
,
CacheEntryRemovedListener
,
CacheEntryExpiredListener
,
EventType
Copyright © 2014. All Rights Reserved.