Record Class SwimGossipProtocol.MemberState.Suspect
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.SwimGossipProtocol.MemberState.Suspect
- Record Components:
suspectTime- timestamp (milliseconds) when suspicion was initiated
- All Implemented Interfaces:
SwimGossipProtocol.MemberState
- Enclosing interface:
SwimGossipProtocol.MemberState
public static record SwimGossipProtocol.MemberState.Suspect(long suspectTime)
extends Record
implements SwimGossipProtocol.MemberState
Member is suspected dead; waiting for confirmation via suspicion timeout.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SwimGossipProtocol.MemberState
SwimGossipProtocol.MemberState.Alive, SwimGossipProtocol.MemberState.Dead, SwimGossipProtocol.MemberState.Suspect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thesuspectTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Suspect
public Suspect(long suspectTime) Creates an instance of aSuspectrecord class.- Parameters:
suspectTime- the value for thesuspectTimerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
suspectTime
public long suspectTime()Returns the value of thesuspectTimerecord component.- Returns:
- the value of the
suspectTimerecord component
-