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 |
void |
entryExpired(CacheEntryEvent<? extends K,? extends V> entry)
Called after the entry has expired and has thus been removed from the Cache. |
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 the
CacheEntryRemovedListener
where an explicit remove call was made.
- Parameters:
entry
- The entry that has expired.
- Throws:
CacheEntryListenerException
- if there is problem executing the listener
Copyright © 2012. All Rights Reserved.