Interface ElectionCandidate
public interface ElectionCandidate
Election candidate.
Guarantee startLeadership() and stopLeadership() method run in same thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoidStart leadership.voidStop leadership.
-
Method Details
-
startLeadership
Start leadership.- Throws:
Exception- exception
-
stopLeadership
void stopLeadership()Stop leadership.Should not throw any exception for the implementation class.
-