public interface CacheEntryCreatedListener<K,V> extends CacheEntryOperationListener<K,V>
Cache.put(Object, Object) or by
read through and the CacheLoader.| Modifier and Type | Method and Description |
|---|---|
void |
onEntryCreated(Cache<K,V> cache,
CacheEntry<K,V> entry)
Called after a creation of a cache entry and after all cache writers ran successfully.
|
void onEntryCreated(Cache<K,V> cache, CacheEntry<K,V> entry)
Exceptions thrown by asynchronous listeners will be propagated to the cache client directly.
cache - Reference to the cache that generated the event.entry - 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.cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.