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, EventListener
public interface CacheEntryExpiredListener<K,V>
- extends CacheEntryListener
Invoked if a cache entry is removed,
for example through a Cache.remove(Object) call.
- Since:
- 1.7
- Author:
- Greg Luck
|
Method Summary |
void |
onExpire(Cache.Entry<K,V> entry)
Called after the entry has expired and has thus been removed from the Cache. |
onExpire
void onExpire(Cache.Entry<K,V> entry)
- 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.
Copyright © 2011. All Rights Reserved.