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