*/
int getSnapshotDataThresholdPercentage();
+
+ /**
+ * Returns the interval(in seconds) after which a snapshot should be taken during recovery.
+ * Negative value means don't take snapshots.
+ *
+ * @return the interval of recovery snapshot in seconds
+ */
+ int getRecoverySnapshotIntervalSeconds();
+
/**
* Returns the interval at which a heart beat message should be sent to remote followers.
*
*/
FiniteDuration getElectionTimeOutInterval();
+ /**
+ * Returns the number by which a candidate should divide the election timeout it has calculated. This serves
+ * to speed up retries when elections result in a stalemate.
+ *
+ * @return the interval as a FiniteDuration.
+ */
+ long getCandidateElectionTimeoutDivisor();
+
/**
* Returns the maximum election time variance. The election is scheduled using both the election timeout
* and variance.