Package org.kiwiproject.curator.leader
Record Class LeadershipStatus.CuratorNotStarted
java.lang.Object
java.lang.Record
org.kiwiproject.curator.leader.LeadershipStatus.CuratorNotStarted
- Record Components:
curatorState- the Curator state
- All Implemented Interfaces:
LeadershipStatus,LeadershipStatus.ErrorLeadershipStatus
- Enclosing interface:
- LeadershipStatus
public static record LeadershipStatus.CuratorNotStarted(org.apache.curator.framework.imps.CuratorFrameworkState curatorState)
extends Record
implements LeadershipStatus.ErrorLeadershipStatus
Represents an invalid latch state; Curator is not in the
STARTED state.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kiwiproject.curator.leader.LeadershipStatus
LeadershipStatus.CuratorNotStarted, LeadershipStatus.ErrorLeadershipStatus, LeadershipStatus.IsLeader, LeadershipStatus.LatchNotStarted, LeadershipStatus.NoLatchParticipants, LeadershipStatus.NotLeader, LeadershipStatus.OtherError, LeadershipStatus.ValidLeadershipStatus -
Constructor Summary
ConstructorsConstructorDescriptionCuratorNotStarted(org.apache.curator.framework.imps.CuratorFrameworkState curatorState) Creates an instance of aCuratorNotStartedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.curator.framework.imps.CuratorFrameworkStateReturns the value of thecuratorStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kiwiproject.curator.leader.LeadershipStatus
isValidStatusMethods inherited from interface org.kiwiproject.curator.leader.LeadershipStatus.ErrorLeadershipStatus
isErrorStatus
-
Constructor Details
-
CuratorNotStarted
public CuratorNotStarted(org.apache.curator.framework.imps.CuratorFrameworkState curatorState) Creates an instance of aCuratorNotStartedrecord class.- Parameters:
curatorState- the value for thecuratorStaterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
curatorState
public org.apache.curator.framework.imps.CuratorFrameworkState curatorState()Returns the value of thecuratorStaterecord component.- Returns:
- the value of the
curatorStaterecord component
-