Interface ElectionCandidate


public interface ElectionCandidate
Election candidate.

Guarantee startLeadership() and stopLeadership() method run in same thread.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Start leadership.
    void
    Stop leadership.
  • Method Details

    • startLeadership

      void startLeadership() throws Exception
      Start leadership.
      Throws:
      Exception - exception
    • stopLeadership

      void stopLeadership()
      Stop leadership.

      Should not throw any exception for the implementation class.