public interface ClusterEventManager<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
addEvents(Object batchIdentifier,
Address target,
UUID identifier,
Collection<ClusterEvent<K,V>> events,
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
|
void addEvents(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K,V>> events, boolean sync)
batchIdentifier pending their submission when
sendEvents(Object) is invoked or cancelled when dropEvents(Object) is invoked.batchIdentifier - identifier for the batchtarget - The target node this event was meant foridentifier - The cluster listener that is identified for these eventsevents - The events that were generatedsync - Whether these events need to be sent synchronously or notCompletionStage<Void> sendEvents(Object batchIdentifier)
void dropEvents(Object batchIdentifier)
Copyright © 2022 JBoss by Red Hat. All rights reserved.