Package com.github.cafapi.common.api
Interface Election
- All Known Implementing Classes:
NullElection
public interface Election
Allows interaction with the election process of an individual service election.
-
Method Summary
-
Method Details
-
enter
Request to enter the election process of this specific election- Throws:
ElectionException
- if it is not possible to enter for election
-
withdraw
void withdraw()Request withdrawal as leader, triggering a re-election process. -
resign
void resign()Terminate participation in this election process, withdrawing as leader if elected.
-