Interface ClusterLeaderService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isLeader()
      Whether or not this node is the current cluster leader.
      boolean isRunning()
      Whether or not this node is participating in the cluster leader election.
      void start()
      Start the service (i.e.
      void stop()
      Stop the service (i.e.
    • Method Detail

      • stop

        void stop()
        Stop the service (i.e. renounce leadership and leave the election).
      • start

        void start()
        Start the service (i.e. join the the election).
      • isRunning

        boolean isRunning()
        Whether or not this node is participating in the cluster leader election.
        Returns:
        true if the node is participating in leader election
      • isLeader

        boolean isLeader()
        Whether or not this node is the current cluster leader.
        Returns:
        true if the node is the current cluster leader