Package javax.cache.event
Interface CacheEntryCreatedListener<K,V>
-
- Type Parameters:
K- the type of keys maintained by the associated cacheV- the type of values maintained by the associated cache
- All Superinterfaces:
CacheEntryListener<K,V>,EventListener
- All Known Implementing Classes:
ClusterCacheInvalidationRequestSender
public interface CacheEntryCreatedListener<K,V> extends CacheEntryListener<K,V>
Invoked if a cache entry is created, for example through aCache.put(Object, Object)operation or the action of aCacheLoader. If an entry for the key existed prior to the operation it is not invoked, as this ia an update.- Since:
- 1.0
- Author:
- Yannis Cosmadopoulos, Greg Luck
- See Also:
CacheEntryUpdatedListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidentryCreated(CacheEntryEvent<? extends K,? extends V> event)Called after the entry has been created (put into the cache where no previous mapping existed).
-
-
-
Method Detail
-
entryCreated
void entryCreated(CacheEntryEvent<? extends K,? extends V> event) throws CacheEntryListenerException
Called after the entry has been created (put into the cache where no previous mapping existed).- Parameters:
event- The entry just added.- Throws:
CacheEntryListenerException- if there is problem executing the listener
-
-