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
ConstructorDescriptionJoinStatus
(DiscoveryNode remoteNode, long term, String message, TimeValue age) Creates an instance of aJoinStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionage()
Returns the value of theage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.Returns the value of theremoteNode
record component.long
term()
Returns the value of theterm
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
JoinStatus
- Throws:
IOException
-
JoinStatus
Creates an instance of aJoinStatus
record class.- Parameters:
remoteNode
- the value for theremoteNode
record componentterm
- the value for theterm
record componentmessage
- the value for themessage
record componentage
- the value for theage
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 theremoteNode
record component.- Returns:
- the value of the
remoteNode
record component
-
term
public long term()Returns the value of theterm
record component.- Returns:
- the value of the
term
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
age
Returns the value of theage
record component.- Returns:
- the value of the
age
record component
-