public class BatchingClusterEventManagerImpl<K,V> extends Object implements ClusterEventManager<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
BatchingClusterEventManagerImpl.UnicastEventContext<K,V> |
| Constructor and Description |
|---|
BatchingClusterEventManagerImpl() |
| 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 |
start() |
public void start()
public void addEvents(Object batchIdentifier, Address target, UUID identifier, Collection<ClusterEvent<K,V>> events, 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 eventsevents - 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.