Module org.elasticsearch.server
Record Class JoinStatus
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.coordination.JoinStatus
- All Implemented Interfaces:
Writeable
public record JoinStatus(DiscoveryNode remoteNode, long term, String message, TimeValue age)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionJoinStatus(DiscoveryNode remoteNode, long term, String message, TimeValue age) Creates an instance of aJoinStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionage()Returns the value of theagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theremoteNoderecord component.longterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
JoinStatus
- Throws:
IOException
-
JoinStatus
Creates an instance of aJoinStatusrecord class.- Parameters:
remoteNode- the value for theremoteNoderecord componentterm- the value for thetermrecord componentmessage- the value for themessagerecord componentage- the value for theagerecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
remoteNode
Returns the value of theremoteNoderecord component.- Returns:
- the value of the
remoteNoderecord component
-
term
public long term()Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
age
Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-