Package io.atomix.raft
Interface ElectionTimer
- All Known Implementing Classes:
PriorityElectionTimer,RandomizedElectionTimer
public interface ElectionTimer
An election timer controls when a node triggers an election.
-
Method Summary
-
Method Details
-
reset
void reset()Reset the timerWhen `reset` is called, the previous timer is cancelled and a new timer will be started. After a specific duration, depending on the implementation, the election will be triggered.
-
cancel
void cancel()Cancel the timer
-