K - the type of keysV - the type of valuespublic class RICacheEventDispatcher<K,V> extends Object
CacheEntryEvents to
CacheEntryListeners.| Constructor and Description |
|---|
RICacheEventDispatcher()
Constructs an
RICacheEventDispatcher. |
| 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<RICacheEntryListenerRegistration<K,V>> registrations)
Dispatches the added events to the listeners defined by the specified
CacheEntryListenerConfigurations. |
public RICacheEventDispatcher()
RICacheEventDispatcher.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<RICacheEntryListenerRegistration<K,V>> registrations)
CacheEntryListenerConfigurations.registrations - the RICacheEntryListenerRegistrations defining
CacheEntryListeners to which to dispatch eventsaddEvent(Class, CacheEntryEvent)Copyright © 2019. All rights reserved.