javax.cache.event
Interface CacheEntryCreatedListener<K,V>

Type Parameters:
K - the type of keys maintained by the associated cache
V - the type of values maintained by the associated cache
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
 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


Copyright © 2013. All Rights Reserved.