Top Description Methods
javax.cache.event

public Interface CacheEntryExpiredListener<K, V>

extends CacheEntryListener<K, V>
Type Parameters
<K>
the type of key
<V>
the type of value

Invoked if a cache entry or entries are evicted due to expiration.
Author
Greg Luck
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public void
onExpired(Iterable<CacheEntryEvent<? extends K, ? extends V>>
The entries just removed.
events
)

Called after one or more entries have been expired by the cache.

Method Detail

onExpiredback to summary
public 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:Iterable<CacheEntryEvent<? extends K, ? extends V>>

The entries just removed.

Exceptions
CacheEntryListenerException:
if there is problem executing the listener