Package javax.cache.event
Interface CacheEntryCreatedListener<K,V>
-
- Type Parameters:
K
- the type of keyV
- the type of value
- All Superinterfaces:
CacheEntryListener<K,V>
,EventListener
public interface CacheEntryCreatedListener<K,V> extends CacheEntryListener<K,V>
Invoked after a cache entry is created, or if a batch call is made, after the entries are created.If an entry for the key existed prior to the operation it is not invoked, instead
CacheEntryUpdatedListener
is invoked.- Since:
- 1.0
- Author:
- Yannis Cosmadopoulos, Greg Luck
- See Also:
CacheEntryUpdatedListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCreated(Iterable<CacheEntryEvent<? extends K,? extends V>> events)
Called after one or more entries have been created.
-
-
-
Method Detail
-
onCreated
void onCreated(Iterable<CacheEntryEvent<? extends K,? extends V>> events) throws CacheEntryListenerException
Called after one or more entries have been created.- Parameters:
events
- The entries just created.- Throws:
CacheEntryListenerException
- if there is problem executing the listener
-
-