|Modifier and Type||Method and Description|
Adds additional cluster events that need to be sent remotely for an event originating locally.
Drops and ignores all previously added events for the given identifier.
Sends all previously added events for the given identifier
void addEvents(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K,V>> events, boolean sync)
batchIdentifierpending their submission when
sendEvents(Object)is invoked or cancelled when
batchIdentifier- identifier for the batch
target- The target node this event was meant for
identifier- The cluster listener that is identified for these events
events- The events that were generated
sync- Whether these events need to be sent synchronously or not
CompletionStage<Void> sendEvents(Object batchIdentifier)
void dropEvents(Object batchIdentifier)
Copyright © 2021 JBoss by Red Hat. All rights reserved.