Top Description Methods
javax.cache.event

public Interface CacheEntryCreatedListener<K, V>

extends CacheEntryListener<K, V>
Type Parameters
<K>
the type of key
<V>
the type of value

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.

Authors
Yannis Cosmadopoulos, Greg Luck
Since
1.0
See Also
CacheEntryUpdatedListener

Method Summary

Modifier and TypeMethod and Description
public void
onCreated(Iterable<CacheEntryEvent<? extends K, ? extends V>>
The entries just created.
events
)

Called after one or more entries have been created.

Method Detail

onCreatedback to summary
public void onCreated(Iterable<CacheEntryEvent<? extends K, ? extends V>> events) throws CacheEntryListenerException

Called after one or more entries have been created.

Parameters
events:Iterable<CacheEntryEvent<? extends K, ? extends V>>

The entries just created.

Exceptions
CacheEntryListenerException:
if there is problem executing the listener