public class RaftAlgorithmConfig extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_APPEND_REQUEST_BACKOFF_TIMEOUT_IN_MILLIS
Default append request backoff timeout in millis.
|
static int |
DEFAULT_APPEND_REQUEST_MAX_ENTRY_COUNT
Default max append request entry count.
|
static int |
DEFAULT_COMMIT_INDEX_ADVANCE_COUNT_TO_SNAPSHOT
Default commit index advance to initiate a snapshot.
|
static long |
DEFAULT_LEADER_ELECTION_TIMEOUT_IN_MILLIS
Default leader election timeout in millis.
|
static long |
DEFAULT_LEADER_HEARTBEAT_PERIOD_IN_MILLIS
Default leader heartbeat period in millis.
|
static int |
DEFAULT_MAX_MISSED_LEADER_HEARTBEAT_COUNT
Default max number of missed heartbeats to trigger a new leader election.
|
static int |
DEFAULT_UNCOMMITTED_ENTRY_COUNT_TO_REJECT_NEW_APPENDS
Default max allowed uncommitted entry count.
|
Constructor and Description |
---|
RaftAlgorithmConfig() |
RaftAlgorithmConfig(RaftAlgorithmConfig config) |
public static final long DEFAULT_LEADER_ELECTION_TIMEOUT_IN_MILLIS
leaderElectionTimeoutInMillis
.public static final long DEFAULT_LEADER_HEARTBEAT_PERIOD_IN_MILLIS
leaderHeartbeatPeriodInMillis
.public static final int DEFAULT_APPEND_REQUEST_MAX_ENTRY_COUNT
appendRequestMaxEntryCount
.public static final int DEFAULT_COMMIT_INDEX_ADVANCE_COUNT_TO_SNAPSHOT
commitIndexAdvanceCountToSnapshot
.public static final int DEFAULT_UNCOMMITTED_ENTRY_COUNT_TO_REJECT_NEW_APPENDS
uncommittedEntryCountToRejectNewAppends
.public static final int DEFAULT_MAX_MISSED_LEADER_HEARTBEAT_COUNT
public static final long DEFAULT_APPEND_REQUEST_BACKOFF_TIMEOUT_IN_MILLIS
public RaftAlgorithmConfig()
public RaftAlgorithmConfig(RaftAlgorithmConfig config)
public long getLeaderElectionTimeoutInMillis()
public RaftAlgorithmConfig setLeaderElectionTimeoutInMillis(long leaderElectionTimeoutInMillis)
public long getLeaderHeartbeatPeriodInMillis()
public RaftAlgorithmConfig setLeaderHeartbeatPeriodInMillis(long leaderHeartbeatPeriodInMillis)
public int getAppendRequestMaxEntryCount()
public RaftAlgorithmConfig setAppendRequestMaxEntryCount(int appendRequestMaxEntryCount)
public int getCommitIndexAdvanceCountToSnapshot()
public RaftAlgorithmConfig setCommitIndexAdvanceCountToSnapshot(int commitIndexAdvanceCountToSnapshot)
public int getUncommittedEntryCountToRejectNewAppends()
public RaftAlgorithmConfig setUncommittedEntryCountToRejectNewAppends(int uncommittedEntryCountToRejectNewAppends)
public int getMaxMissedLeaderHeartbeatCount()
public RaftAlgorithmConfig setMaxMissedLeaderHeartbeatCount(int maxMissedLeaderHeartbeatCount)
public long getAppendRequestBackoffTimeoutInMillis()
public RaftAlgorithmConfig setAppendRequestBackoffTimeoutInMillis(long appendRequestBackoffTimeoutInMillis)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.