Record Class SwimGossipProtocol.MemberState.Dead
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.SwimGossipProtocol.MemberState.Dead
- Record Components:
deathTime- timestamp (milliseconds) when member was confirmed dead
- All Implemented Interfaces:
SwimGossipProtocol.MemberState
- Enclosing interface:
SwimGossipProtocol.MemberState
public static record SwimGossipProtocol.MemberState.Dead(long deathTime)
extends Record
implements SwimGossipProtocol.MemberState
Member is confirmed dead.
-
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 TypeMethodDescriptionlongReturns the value of thedeathTimerecord 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.
-
Constructor Details
-
Dead
public Dead(long deathTime) Creates an instance of aDeadrecord class.- Parameters:
deathTime- the value for thedeathTimerecord 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. -
deathTime
-