K - The key classV - The value classpublic interface CacheEventManager<K,V>
ListenerCacheEventManager actually only forwards the events. This interface
is here to be able to create decorators that e.g. also log the event, proxy it to
a remote service, or globally filter events.
Implementation note: At the moment you cannot inject decorators from outside, neither by code nor by configuration. But this is an option that should be considered.
| Modifier and Type | Method and Description |
|---|---|
void |
created(javax.cache.event.CacheEntryCreatedListener<K,V> listener,
TCacheEntryEventCollection<K,V> eventColl) |
void |
expired(javax.cache.event.CacheEntryExpiredListener<K,V> listener,
TCacheEntryEventCollection<K,V> eventColl) |
void |
removed(javax.cache.event.CacheEntryRemovedListener<K,V> listener,
TCacheEntryEventCollection<K,V> eventColl) |
void |
updated(javax.cache.event.CacheEntryUpdatedListener<K,V> listener,
TCacheEntryEventCollection<K,V> eventColl) |
void created(javax.cache.event.CacheEntryCreatedListener<K,V> listener, TCacheEntryEventCollection<K,V> eventColl)
void updated(javax.cache.event.CacheEntryUpdatedListener<K,V> listener, TCacheEntryEventCollection<K,V> eventColl)
void removed(javax.cache.event.CacheEntryRemovedListener<K,V> listener, TCacheEntryEventCollection<K,V> eventColl)
void expired(javax.cache.event.CacheEntryExpiredListener<K,V> listener, TCacheEntryEventCollection<K,V> eventColl)
Copyright © 2018 trivago. All rights reserved.