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, queueCapacity, queueFullBehavior, queueLoggerTimePeriodMs, running, stagingQueue, state, wanCounter, wanPublisherId, wanReplicationName| Constructor and Description |
|---|
WanBatchReplication() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterShutdown() |
protected WanPublisherSyncSupport |
createWanSyncSupport()
Creates a support instance for processing WAN merkle tree anti-entropy
events.
|
long |
getFailedTransmissionCount()
Returns the number of failed WAN batch transmissions.
|
int |
getStagingQueueSize()
Returns the capacity of the WAN staging queue.
|
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, decrementCounter, destroyMapData, getCurrentBackupElementCount, getCurrentElementCount, getPartitionId, getPublisherQueueContainer, getStats, onMigrationCommit, onMigrationRollback, onMigrationStart, onWanQueueClearedDuringMigration, pause, populate, publishAntiEntropyEvent, publishReplicationEvent, publishReplicationEvent, publishReplicationEventBackup, publishSyncEvent, putBackup, removeBackup, removeReplicationEvent, reset, resume, shutdown, stoppublic 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 - the replication configwanPublisherConfig - this endpoint will be initialized using
this WanPublisherConfig instanceprotected void afterShutdown()
afterShutdown in class AbstractWanReplicationpublic int getStagingQueueSize()
AbstractWanPublishergetStagingQueueSize in class AbstractWanPublisherAbstractWanPublisher.stagingQueueprotected WanPublisherSyncSupport createWanSyncSupport()
AbstractWanPublishernull if merkle tree WAN sync is
not supported.createWanSyncSupport in class AbstractWanPublisherpublic long getFailedTransmissionCount()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.