javax.cache.event
Interface CacheEntryReadListener<K,V>

Type Parameters:
K - the type of keys maintained by the associated cache
V - the type of values maintained by the associated cache
All Superinterfaces:
CacheEntryListener<K,V>, EventListener

public interface CacheEntryReadListener<K,V>
extends CacheEntryListener<K,V>

Invoked if a cache entry is read, or if a batch call is made, after the entries are read. Iterating over a cache causes the entries to be read.

Since:
1.0
Author:
Yannis Cosmadopoulos, Greg Luck

Method Summary
 void onRead(Iterable<CacheEntryEvent<? extends K,? extends V>> events)
          Called after the entry has been read.
 

Method Detail

onRead

void onRead(Iterable<CacheEntryEvent<? extends K,? extends V>> events)
            throws CacheEntryListenerException
Called after the entry has been read. If no entry existed for the key the event is not called.

Parameters:
events - The entries just read.
Throws:
CacheEntryListenerException - if there is problem executing the listener


Copyright © 2013. All Rights Reserved.