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
public class CoherenceCacheEventEventDispatcher<K,V> extends Object
Collects and appropriately dispatchesCacheEntryEvent
s toCacheEntryListener
s.- Since:
- Coherence 12.1.3
- Author:
- jf 2013.10.24
-
-
Constructor Summary
Constructors Constructor Description CoherenceCacheEventEventDispatcher()
Constructs anCoherenceCacheEventEventDispatcher
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 specifiedCacheEntryListenerConfiguration
s.
-
-
-
Constructor Detail
-
CoherenceCacheEventEventDispatcher
public CoherenceCacheEventEventDispatcher()
Constructs anCoherenceCacheEventEventDispatcher
.
-
-
Method Detail
-
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 ofCacheEntryListener
that should receive the eventevent
- the event to be dispatched
-
dispatch
public void dispatch(Iterable<CoherenceCacheEntryListenerRegistration<K,V>> registrations)
Dispatches the added events to the listeners defined by the specifiedCacheEntryListenerConfiguration
s.- Parameters:
registrations
- theCacheEntryListenerConfiguration
definingCacheEntryListener
s to which to dispatch events- See Also:
addEvent(Class, javax.cache.event.CacheEntryEvent)
-
-