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 or entries are evicted due to expiration.
- Since:
- 1.0
- Author:
- Greg Luck
onExpired
void onExpired(Iterable<CacheEntryEvent<? extends K,? extends V>> events)
throws CacheEntryListenerException
- Called 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
Copyright © 2013. All Rights Reserved.