Module org.elasticsearch.server
Record Class JoinTask.NodeJoinTask
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.coordination.JoinTask.NodeJoinTask
- Enclosing class:
- JoinTask
public static record JoinTask.NodeJoinTask(DiscoveryNode node, CompatibilityVersions compatibilityVersions, Set<String> features, JoinReason reason, ActionListener<Void> listener)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodeJoinTask
(DiscoveryNode node, CompatibilityVersions compatibilityVersions, Set<String> features, JoinReason reason, ActionListener<Void> listener) Creates an instance of aNodeJoinTask
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendDescription
(StringBuilder stringBuilder) Returns the value of thecompatibilityVersions
record component.final boolean
Indicates whether some other object is "equal to" this one.features()
Returns the value of thefeatures
record component.final int
hashCode()
Returns a hash code value for this object.listener()
Returns the value of thelistener
record component.node()
Returns the value of thenode
record component.reason()
Returns the value of thereason
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
NodeJoinTask
public NodeJoinTask(DiscoveryNode node, CompatibilityVersions compatibilityVersions, Set<String> features, JoinReason reason, ActionListener<Void> listener) Creates an instance of aNodeJoinTask
record class.- Parameters:
node
- the value for thenode
record componentcompatibilityVersions
- the value for thecompatibilityVersions
record componentfeatures
- the value for thefeatures
record componentreason
- the value for thereason
record componentlistener
- the value for thelistener
record component
-
-
Method Details
-
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. -
appendDescription
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
node
Returns the value of thenode
record component.- Returns:
- the value of the
node
record component
-
compatibilityVersions
Returns the value of thecompatibilityVersions
record component.- Returns:
- the value of the
compatibilityVersions
record component
-
features
Returns the value of thefeatures
record component.- Returns:
- the value of the
features
record component
-
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-
listener
Returns the value of thelistener
record component.- Returns:
- the value of the
listener
record component
-