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
Invoked if a cache entry is evicted because of expiration.
- Since:
- 1.0
- Author:
- Greg Luck
-
Method Summary
Modifier and TypeMethodDescriptionvoidentryExpired(CacheEntryEvent<? extends K, ? extends V> entry) Called after the entry has expired and has thus been removed from the Cache.
-
Method Details
-
entryExpired
void entryExpired(CacheEntryEvent<? extends K, ? extends V> entry) throws CacheEntryListenerExceptionCalled 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
-