public class LatencyTrackingWanBatchSender extends Object implements WanBatchSender
WanBatchSender implementation that additionally tracks
the latency for all successful transmissions of the WAN batches.| Constructor and Description |
|---|
LatencyTrackingWanBatchSender(WanBatchSender delegate,
com.hazelcast.internal.diagnostics.StoreLatencyPlugin plugin,
String wanPublisherId,
Executor responseExecutor) |
| 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 LatencyTrackingWanBatchSender(WanBatchSender delegate, com.hazelcast.internal.diagnostics.StoreLatencyPlugin plugin, String wanPublisherId, Executor responseExecutor)
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.