K - the type of keysV - the type of valuespublic class CoherenceCacheEventEventDispatcher<K,V> extends Object
CacheEntryEvents to
CacheEntryListeners.| Constructor and Description |
|---|
CoherenceCacheEventEventDispatcher()
Constructs an
CoherenceCacheEventEventDispatcher. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
dispatch(Iterable<CoherenceCacheEntryListenerRegistration<K,V>> registrations)
Dispatches the added events to the listeners defined by the specified
CacheEntryListenerConfigurations. |
public CoherenceCacheEventEventDispatcher()
CoherenceCacheEventEventDispatcher.public void addEvent(Class<? extends javax.cache.event.CacheEntryListener> listenerClass, javax.cache.event.CacheEntryEvent<K,V> event)
listenerClass - the class of CacheEntryListener that should
receive the eventevent - the event to be dispatchedpublic void dispatch(Iterable<CoherenceCacheEntryListenerRegistration<K,V>> registrations)
CacheEntryListenerConfigurations.registrations - the CacheEntryListenerConfiguration defining
CacheEntryListeners to which to dispatch eventsaddEvent(Class, javax.cache.event.CacheEntryEvent)