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 aNodeJoinTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendDescription(StringBuilder stringBuilder) Returns the value of thecompatibilityVersionsrecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.listener()Returns the value of thelistenerrecord component.node()Returns the value of thenoderecord component.reason()Returns the value of thereasonrecord 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 aNodeJoinTaskrecord class.- Parameters:
node- the value for thenoderecord componentcompatibilityVersions- the value for thecompatibilityVersionsrecord componentfeatures- the value for thefeaturesrecord componentreason- the value for thereasonrecord componentlistener- the value for thelistenerrecord 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 thenoderecord component.- Returns:
- the value of the
noderecord component
-
compatibilityVersions
Returns the value of thecompatibilityVersionsrecord component.- Returns:
- the value of the
compatibilityVersionsrecord component
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-