Package javax.cache.event
Interface CacheEntryExpiredListener<K,V>
-
- Type Parameters:
K- the type of keys maintained by the associated cacheV- the type of values maintained by the associated cache
- All Superinterfaces:
CacheEntryListener<K,V>,EventListener
public interface CacheEntryExpiredListener<K,V> extends CacheEntryListener<K,V>
Invoked if a cache entry is evicted because of expiration.- Since:
- 1.0
- Author:
- Greg Luck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidentryExpired(CacheEntryEvent<? extends K,? extends V> entry)Called after the entry has expired and has thus been removed from the Cache.
-
-
-
Method Detail
-
entryExpired
void entryExpired(CacheEntryEvent<? extends K,? extends V> entry) throws CacheEntryListenerException
Called after the entry has expired and has thus been removed from the Cache. This is distinguished from theCacheEntryRemovedListenerwhere an explicit remove call was made.- Parameters:
entry- The entry that has expired.- Throws:
CacheEntryListenerException- if there is problem executing the listener
-
-