public class CRDTReplicationConfig extends Object
CRDT
implementations.
The CRDT states are replicated in rounds (the period is configurable)
and in each round the state is replicated up to the configured number
of members.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CONCURRENT_REPLICATION_TARGETS
The default maximum number of members to which the CRDT states are
replicated in a single round.
|
static int |
DEFAULT_REPLICATION_PERIOD_MILLIS
The default period between two CRDT replication rounds.
|
Constructor and Description |
---|
CRDTReplicationConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getMaxConcurrentReplicationTargets()
Returns the maximum number of target members that we replicate the CRDT
states to in one period.
|
int |
getReplicationPeriodMillis()
Returns the period between two replications of CRDT states in
milliseconds.
|
int |
hashCode() |
CRDTReplicationConfig |
setMaxConcurrentReplicationTargets(int maxConcurrentReplicationTargets)
Sets the maximum number of target members that we replicate the CRDT states
to in one period.
|
CRDTReplicationConfig |
setReplicationPeriodMillis(int replicationPeriodMillis)
Sets the period between two replications of CRDT states in milliseconds.
|
public static final int DEFAULT_REPLICATION_PERIOD_MILLIS
public static final int DEFAULT_MAX_CONCURRENT_REPLICATION_TARGETS
public int getReplicationPeriodMillis()
public CRDTReplicationConfig setReplicationPeriodMillis(int replicationPeriodMillis)
replicationPeriodMillis
- the replication periodpublic int getMaxConcurrentReplicationTargets()
public CRDTReplicationConfig setMaxConcurrentReplicationTargets(int maxConcurrentReplicationTargets)
maxConcurrentReplicationTargets
- the maximum number of replication
targets in a replication periodCopyright © 2023 Hazelcast, Inc.. All rights reserved.