Package com.hazelcast.config.cp
Class RaftAlgorithmConfig
java.lang.Object
com.hazelcast.config.cp.RaftAlgorithmConfig
Configuration for Hazelcast's implementation of the Raft consensus algorithm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Default append request backoff timeout in millis.static final int
The default maximum append request entry count.static final int
The default commit index advance count on Raft log to take a snapshot.static final long
The default leader election timeout in millis.static final long
The default leader heartbeat period in millis.static final int
Default max number of missed heartbeats to trigger a new leader election.static final int
The default maximum allowed uncommitted entry count. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
int
long
long
int
int
int
hashCode()
setAppendRequestBackoffTimeoutInMillis
(long appendRequestBackoffTimeoutInMillis) setAppendRequestMaxEntryCount
(int appendRequestMaxEntryCount) setCommitIndexAdvanceCountToSnapshot
(int commitIndexAdvanceCountToSnapshot) setLeaderElectionTimeoutInMillis
(long leaderElectionTimeoutInMillis) setLeaderHeartbeatPeriodInMillis
(long leaderHeartbeatPeriodInMillis) setMaxMissedLeaderHeartbeatCount
(int maxMissedLeaderHeartbeatCount) setUncommittedEntryCountToRejectNewAppends
(int uncommittedEntryCountToRejectNewAppends) toString()
-
Field Details
-
DEFAULT_LEADER_ELECTION_TIMEOUT_IN_MILLIS
public static final long DEFAULT_LEADER_ELECTION_TIMEOUT_IN_MILLISThe default leader election timeout in millis. SeeleaderElectionTimeoutInMillis
.- See Also:
-
DEFAULT_LEADER_HEARTBEAT_PERIOD_IN_MILLIS
public static final long DEFAULT_LEADER_HEARTBEAT_PERIOD_IN_MILLISThe default leader heartbeat period in millis. SeeleaderHeartbeatPeriodInMillis
.- See Also:
-
DEFAULT_APPEND_REQUEST_MAX_ENTRY_COUNT
public static final int DEFAULT_APPEND_REQUEST_MAX_ENTRY_COUNTThe default maximum append request entry count. SeeappendRequestMaxEntryCount
.- See Also:
-
DEFAULT_COMMIT_INDEX_ADVANCE_COUNT_TO_SNAPSHOT
public static final int DEFAULT_COMMIT_INDEX_ADVANCE_COUNT_TO_SNAPSHOTThe default commit index advance count on Raft log to take a snapshot. SeecommitIndexAdvanceCountToSnapshot
.- See Also:
-
DEFAULT_UNCOMMITTED_ENTRY_COUNT_TO_REJECT_NEW_APPENDS
public static final int DEFAULT_UNCOMMITTED_ENTRY_COUNT_TO_REJECT_NEW_APPENDSThe default maximum allowed uncommitted entry count. SeeuncommittedEntryCountToRejectNewAppends
.- See Also:
-
DEFAULT_MAX_MISSED_LEADER_HEARTBEAT_COUNT
public static final int DEFAULT_MAX_MISSED_LEADER_HEARTBEAT_COUNTDefault max number of missed heartbeats to trigger a new leader election.- See Also:
-
DEFAULT_APPEND_REQUEST_BACKOFF_TIMEOUT_IN_MILLIS
public static final long DEFAULT_APPEND_REQUEST_BACKOFF_TIMEOUT_IN_MILLISDefault append request backoff timeout in millis.- See Also:
-
-
Constructor Details
-
RaftAlgorithmConfig
public RaftAlgorithmConfig() -
RaftAlgorithmConfig
-
-
Method Details
-
getLeaderElectionTimeoutInMillis
public long getLeaderElectionTimeoutInMillis() -
setLeaderElectionTimeoutInMillis
-
getLeaderHeartbeatPeriodInMillis
public long getLeaderHeartbeatPeriodInMillis() -
setLeaderHeartbeatPeriodInMillis
-
getAppendRequestMaxEntryCount
public int getAppendRequestMaxEntryCount() -
setAppendRequestMaxEntryCount
-
getCommitIndexAdvanceCountToSnapshot
public int getCommitIndexAdvanceCountToSnapshot() -
setCommitIndexAdvanceCountToSnapshot
public RaftAlgorithmConfig setCommitIndexAdvanceCountToSnapshot(int commitIndexAdvanceCountToSnapshot) -
getUncommittedEntryCountToRejectNewAppends
public int getUncommittedEntryCountToRejectNewAppends() -
setUncommittedEntryCountToRejectNewAppends
public RaftAlgorithmConfig setUncommittedEntryCountToRejectNewAppends(int uncommittedEntryCountToRejectNewAppends) -
getMaxMissedLeaderHeartbeatCount
public int getMaxMissedLeaderHeartbeatCount() -
setMaxMissedLeaderHeartbeatCount
-
getAppendRequestBackoffTimeoutInMillis
public long getAppendRequestBackoffTimeoutInMillis() -
setAppendRequestBackoffTimeoutInMillis
public RaftAlgorithmConfig setAppendRequestBackoffTimeoutInMillis(long appendRequestBackoffTimeoutInMillis) -
toString
-
equals
-
hashCode
public int hashCode()
-