Package javax.cache.event
Interface CacheEntryExpiredListener<K,V>
- Type Parameters:
K
- the type of keyV
- the type of value
- All Superinterfaces:
CacheEntryListener<K,
,V> EventListener
Invoked if a cache entry or entries are evicted due to expiration.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onExpired
(Iterable<CacheEntryEvent<? extends K, ? extends V>> events) Called after one or more entries have been expired by the cache.
-
Method Details
-
onExpired
void onExpired(Iterable<CacheEntryEvent<? extends K, ? extends V>> events) throws CacheEntryListenerExceptionCalled after one or more entries have been expired by the cache. This is not necessarily when an entry is expired, but when the cache detects the expiry.- Parameters:
events
- The entries just removed.- Throws:
CacheEntryListenerException
- if there is problem executing the listener
-