Package io.atomix.raft
Interface ElectionTimerFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new ElectionTimer
-
Method Details
-
create
Creates a new ElectionTimer- Parameters:
triggerElection- - A runnable which start election by sending the poll requests.logger- - A logger for logging- Returns:
- an ElectionTimer
-