K
- the type of keyV
- the type of valuepublic interface CacheEntryListener<K,V> extends EventListener
CacheEntryListenerException
. Caching implementations
must catch any other Exception
from a listener, then wrap and rethrow it as a
CacheEntryListenerException
.
A listener which mutates a cache on the CacheManager may cause a deadlock.
Detection and response to deadlocks is implementation specific.
A listener on a transactional cache is executed orthogonally to the transaction.
If synchronous it is executed after the mutation and not after the transaction
commits, and if asynchronous the timing is undefined. A listener which throws
an exception will not affect the transaction. A transaction which is rolled back
will not unfire a listener.CacheEntryCreatedListener
,
CacheEntryUpdatedListener
,
CacheEntryRemovedListener
,
CacheEntryExpiredListener
,
EventType
Copyright © 2013. All Rights Reserved.