public class DefaultWanBatchSender extends Object implements WanBatchSender
WanBatchSender.
It will send the WAN batch as a WanOperation to the target
address and block for a configurable amount of time. It will also
remove a connection if there was an exception while sending the
operation.| Constructor and Description |
|---|
DefaultWanBatchSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(com.hazelcast.instance.Node node,
WanBatchReplication publisher)
Initialises this sender.
|
com.hazelcast.core.ICompletableFuture<Boolean> |
send(BatchWanReplicationEvent batchReplicationEvent,
com.hazelcast.nio.Address target)
Sends the WAN batch to the target address and returns a future
representing the pending completion of the invocation.
|
public void init(com.hazelcast.instance.Node node,
WanBatchReplication publisher)
WanBatchSenderinit in interface WanBatchSendernode - the node on which this sender is runningpublisher - the WAN publisher for which this sender is used to send batches forpublic com.hazelcast.core.ICompletableFuture<Boolean> send(BatchWanReplicationEvent batchReplicationEvent, com.hazelcast.nio.Address target)
WanBatchSendersend in interface WanBatchSenderbatchReplicationEvent - the WAN batch eventstarget - the target addresstrue if the batch was sent successfullyCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.