Package org.cache2k.event
Interface CacheEntryRemovedListener<K,V>
-
- All Superinterfaces:
CacheEntryOperationListener<K,V>
,DataAware<K,V>
,EventListener
public interface CacheEntryRemovedListener<K,V> extends CacheEntryOperationListener<K,V>
Called when an entry was actively removed from the cache. This is not called when an entry was evicted or expired.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEntryRemoved(Cache<K,V> cache, CacheEntry<K,V> entry)
Called after the removal of a cache entry and after all cache writers ran successfully.
-
-
-
Method Detail
-
onEntryRemoved
void onEntryRemoved(Cache<K,V> cache, CacheEntry<K,V> entry) throws Exception
Called after the removal of a cache entry and after all cache writers ran successfully.Exceptions thrown by asynchronous listeners will be propagated to the cache client directly.
- Parameters:
cache
- The cache that generated the event.entry
- Entry containing the last data. It is only valid to access the object during the call of this method. The object value may become invalid afterwards.- Throws:
Exception
-
-