Interface Election

All Known Implementing Classes:
NullElection

public interface Election
Allows interaction with the election process of an individual service election.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Request to enter the election process of this specific election
    void
    Terminate participation in this election process, withdrawing as leader if elected.
    void
    Request withdrawal as leader, triggering a re-election process.
  • Method Details

    • enter

      void enter() throws ElectionException
      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.