public class ClusterEventManagerStub<K,V> extends Object implements ClusterEventManager<K,V>
| Constructor and Description |
|---|
ClusterEventManagerStub() |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
CompletionStage<Void> |
sendEvents(Object batchIdentifier)
Sends all previously added events for the given identifier
|
public void addEvents(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K,V>> clusterEvents, boolean sync)
ClusterEventManagerbatchIdentifier pending their submission when
ClusterEventManager.sendEvents(Object) is invoked or cancelled when ClusterEventManager.dropEvents(Object) is invoked.addEvents in interface ClusterEventManager<K,V>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 notpublic CompletionStage<Void> sendEvents(Object batchIdentifier)
ClusterEventManagersendEvents in interface ClusterEventManager<K,V>public void dropEvents(Object batchIdentifier)
ClusterEventManagerdropEvents in interface ClusterEventManager<K,V>Copyright © 2022 JBoss by Red Hat. All rights reserved.