Package javax.cache.event
Interface CacheEntryReadListener<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
Invoked if a cache entry is read,
for example through a
Cache.get(Object) call.- Since:
- 1.0
- Author:
- Yannis Cosmadopoulos, Greg Luck
-
Method Summary
Modifier and TypeMethodDescriptionvoidentryRead(CacheEntryEvent<? extends K, ? extends V> event) Called after the entry has been read.
-
Method Details
-
entryRead
Called after the entry has been read. If no entry existed for the key the event is not called.- Parameters:
event- The event just read.- Throws:
CacheEntryListenerException- if there is problem executing the listener
-