javax.cache.event
Interface CacheEntryUpdatedListener<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 CacheEntryUpdatedListener<K,V>
extends CacheEntryListener<K,V>

Invoked if an existing cache entry is updated, for example through a Cache.put(Object, Object) operation. It is not invoked by a Cache.remove(Object) operation.

Since:
1.0
Author:
Yannis Cosmadopoulos, Greg Luck
See Also:
CacheEntryCreatedListener

Method Summary
 void onUpdate(Cache.Entry<K,V> entry)
          Called after the entry has been updated (put into the cache where a previous mapping existed).
 void onUpdateAll(Iterable<Cache.Entry<K,V>> entries)
          Called after the entries have been updated (put into the cache where a previous mapping existed).
 
Methods inherited from interface javax.cache.event.CacheEntryListener
getNotificationScope
 

Method Detail

onUpdate

void onUpdate(Cache.Entry<K,V> entry)
Called after the entry has been updated (put into the cache where a previous mapping existed). This method is not called if a batch operation was performed.

Parameters:
entry - The entry just updated.
See Also:
onUpdateAll(Iterable)

onUpdateAll

void onUpdateAll(Iterable<Cache.Entry<K,V>> entries)
Called after the entries have been updated (put into the cache where a previous mapping existed).

Parameters:
entries - The entries just updated.


Copyright © 2011. All Rights Reserved.