Record Class MembershipProtocol.MembershipEvent.MemberJoined
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.MembershipProtocol.MembershipEvent.MemberJoined
- All Implemented Interfaces:
MembershipProtocol.MembershipEvent
- Enclosing interface:
MembershipProtocol.MembershipEvent
public static record MembershipProtocol.MembershipEvent.MemberJoined(String nodeId, String address, long timestamp)
extends Record
implements MembershipProtocol.MembershipEvent
A member has joined the cluster.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface MembershipProtocol.MembershipEvent
MembershipProtocol.MembershipEvent.LeaderChanged, MembershipProtocol.MembershipEvent.MemberJoined, MembershipProtocol.MembershipEvent.MemberLeft, MembershipProtocol.MembershipEvent.MemberRecovered, MembershipProtocol.MembershipEvent.MemberSuspected -
Constructor Summary
ConstructorsConstructorDescriptionMemberJoined(String nodeId, String address, long timestamp) Creates an instance of aMemberJoinedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemberJoined
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-