Class CoherenceCacheEventEventDispatcher<K,V> 
java.lang.Object
com.tangosol.coherence.jcache.common.CoherenceCacheEventEventDispatcher<K,V> 
- Type Parameters:
 K- the type of keysV- the type of values
Collects and appropriately dispatches 
CacheEntryEvents to
 CacheEntryListeners.- Since:
 - Coherence 12.1.3
 - Author:
 - jf 2013.10.24
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(Class<? extends javax.cache.event.CacheEntryListener> listenerClass, javax.cache.event.CacheEntryEvent<K, V> event) Requests that the specified event be prepared for dispatching to the specified type of listeners.voiddispatch(Iterable<CoherenceCacheEntryListenerRegistration<K, V>> registrations) Dispatches the added events to the listeners defined by the specifiedCacheEntryListenerConfigurations. 
- 
Constructor Details
- 
CoherenceCacheEventEventDispatcher
public CoherenceCacheEventEventDispatcher()Constructs anCoherenceCacheEventEventDispatcher. 
 - 
 - 
Method Details
- 
addEvent
public void addEvent(Class<? extends javax.cache.event.CacheEntryListener> listenerClass, javax.cache.event.CacheEntryEvent<K, V> event) Requests that the specified event be prepared for dispatching to the specified type of listeners.- Parameters:
 listenerClass- the class ofCacheEntryListenerthat should receive the eventevent- the event to be dispatched
 - 
dispatch
Dispatches the added events to the listeners defined by the specifiedCacheEntryListenerConfigurations.- Parameters:
 registrations- theCacheEntryListenerConfigurationdefiningCacheEntryListeners to which to dispatch events- See Also:
 
 
 -