Class ClusterEventManagerStub<K,V>
java.lang.Object
org.infinispan.notifications.cachelistener.cluster.impl.ClusterEventManagerStub<K,V>
- All Implemented Interfaces:
ClusterEventManager<K,
V>
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvents
(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K, V>> clusterEvents, boolean sync) Adds additional cluster events that need to be sent remotely for an event originating locally.void
dropEvents
(Object batchIdentifier) Drops and ignores all previously added events for the given identifier.sendEvents
(Object batchIdentifier) Sends all previously added events for the given identifier
-
Constructor Details
-
ClusterEventManagerStub
public ClusterEventManagerStub()
-
-
Method Details
-
addEvents
public void addEvents(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K, V>> clusterEvents, boolean sync) Description copied from interface:ClusterEventManager
Adds additional cluster events that need to be sent remotely for an event originating locally. These events are batched by thebatchIdentifier
pending their submission whenClusterEventManager.sendEvents(Object)
is invoked or cancelled whenClusterEventManager.dropEvents(Object)
is invoked.- Specified by:
addEvents
in interfaceClusterEventManager<K,
V> - Parameters:
batchIdentifier
- identifier for the batchtarget
- The target node this event was meant foridentifier
- The cluster listener that is identified for these eventsclusterEvents
- The events that were generatedsync
- Whether these events need to be sent synchronously or not
-
sendEvents
Description copied from interface:ClusterEventManager
Sends all previously added events for the given identifier- Specified by:
sendEvents
in interfaceClusterEventManager<K,
V>
-
dropEvents
Description copied from interface:ClusterEventManager
Drops and ignores all previously added events for the given identifier.- Specified by:
dropEvents
in interfaceClusterEventManager<K,
V>
-