Interface LeadershipStatus.ErrorLeadershipStatus

All Superinterfaces:
LeadershipStatus
All Known Implementing Classes:
LeadershipStatus.CuratorNotStarted, LeadershipStatus.LatchNotStarted, LeadershipStatus.NoLatchParticipants, LeadershipStatus.OtherError
Enclosing interface:
LeadershipStatus

Defines an invalid leadership status caused by an error or erroneous state.
  • 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