public interface CacheEntryUpdatedListener<K,V> extends CacheEntryOperationListener<K,V>
Cache.put(K, V)and its variants if a previous entry exists, or if a value is reloaded or refreshed after expiry.
void onEntryUpdated(Cache<K,V> cache, CacheEntry<K,V> currentEntry, CacheEntry<K,V> entryWithNewData)
Exceptions thrown by asynchronous listeners will be propagated to the cache client directly.
cache- Reference to the cache that generated the event.
currentEntry- Entry containing the current data. It is only valid to access the object during the call of this method. The object value may become invalid afterwards.
entryWithNewData- entry containing the data after the update operation was applied. The data will be visible after all synchronous events are processed. It is only valid to access the object during the call of this method. The object value may become invalid afterwards.
cache2k API documentation. Copyright © 2000–2017 headissue GmbH, Munich.