Interface CacheEntryCreatedListener<K,​V>

    • Method Detail

      • onEntryCreated

        void onEntryCreated​(Cache<K,​V> cache,
                            CacheEntry<K,​V> entry)
                     throws Exception
        Called for the creation of a cache entry and after all cache writers ran successfully. A synchronous event is executed before the entry becomes visible for cache clients. If an inserted or loaded value expires immediately, no created event is sent.

        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.