public class WanBatchReplication extends AbstractWanReplication implements Runnable
The event count is configurable by
WanReplicationProperties.BATCH_SIZE and is
by default.
The elapsed time is configurable by
WanReplicationProperties.BATCH_MAX_DELAY_MILLIS and is
by default.
The events are sent to the endpoints depending on the event key
partition.
connectionManagerconfigurationContext, eventQueueContainer, lastQueueFullLogTimeMs, localGroupName, logger, node, paused, queueCapacity, queueFullBehavior, queueLoggerTimePeriodMs, running, stagingQueue, syncManager, syncRequests, targetGroupName, wanReplicationName| Constructor and Description |
|---|
WanBatchReplication() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterShutdown() |
long |
getFailedTransmissionCount()
Returns the number of failed WAN batch transmissions.
|
int |
getStagingQueueSize() |
void |
init(com.hazelcast.instance.Node node,
com.hazelcast.config.WanReplicationConfig wanReplicationConfig,
com.hazelcast.config.WanPublisherConfig wanPublisherConfig)
Initializes the endpoint using the given arguments.
|
void |
run() |
getTargetEndpoints, isConnectedaddCacheQueue, addMapQueue, checkWanReplicationQueues, clearQueues, collectAllServiceNamespaces, collectReplicationData, decrementWANQueueSize, getCurrentBackupElementCount, getCurrentElementCount, getPartitionId, getPublisherQueueContainer, getStats, getTargetGroupName, pause, populate, publishReplicationEvent, publishReplicationEvent, publishReplicationEventBackup, publishSyncEvent, putBackup, removeBackup, removeReplicationEvent, resume, shutdownpublic void init(com.hazelcast.instance.Node node,
com.hazelcast.config.WanReplicationConfig wanReplicationConfig,
com.hazelcast.config.WanPublisherConfig wanPublisherConfig)
WanReplicationEndpointinit in interface WanReplicationEndpointinit in class AbstractWanReplicationnode - the current node that tries to connectwanReplicationConfig - WanReplicationConfig configwanPublisherConfig - this endpoint will be initialized using this WanPublisherConfig instanceprotected void afterShutdown()
afterShutdown in class AbstractWanReplicationpublic int getStagingQueueSize()
getStagingQueueSize in class AbstractWanPublisherpublic long getFailedTransmissionCount()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.