Interface LeadershipStatus.ValidLeadershipStatus

All Superinterfaces:
LeadershipStatus
All Known Implementing Classes:
LeadershipStatus.IsLeader, LeadershipStatus.NotLeader
Enclosing interface:
LeadershipStatus

public static sealed interface LeadershipStatus.ValidLeadershipStatus extends LeadershipStatus permits LeadershipStatus.IsLeader, LeadershipStatus.NotLeader
Defines a valid leadership status.
  • Method Details

    • isErrorStatus

      default boolean isErrorStatus()
      Description copied from interface: LeadershipStatus
      Check whether the status is from a bad latch state, where the Curator client or the LeaderLatch might not be started or there are no participants in the latch.
      Specified by:
      isErrorStatus in interface LeadershipStatus
      Returns:
      true if the leadership status is from an invalid latch state, otherwise false