Module org.elasticsearch.server
Package org.elasticsearch.index.reindex
Record Class ResumeInfo.RelocationOrigin
java.lang.Object
java.lang.Record
org.elasticsearch.index.reindex.ResumeInfo.RelocationOrigin
- All Implemented Interfaces:
Writeable
- Enclosing class:
ResumeInfo
public static record ResumeInfo.RelocationOrigin(TaskId originalTaskId, long originalStartTimeMillis)
extends Record
implements Writeable
Identity of the original task that was relocated. Propagated through relocation chains
so the user-facing task ID and start time are preserved across any number of hops.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionRelocationOrigin(TaskId originalTaskId, long originalStartTimeMillis) Creates an instance of aRelocationOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theoriginalStartTimeMillisrecord component.Returns the value of theoriginalTaskIdrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
RelocationOrigin
Creates an instance of aRelocationOriginrecord class.- Parameters:
originalTaskId- the value for theoriginalTaskIdrecord componentoriginalStartTimeMillis- the value for theoriginalStartTimeMillisrecord component
-
RelocationOrigin
- Throws:
IOException
-
-
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 '=='. -
originalTaskId
Returns the value of theoriginalTaskIdrecord component.- Returns:
- the value of the
originalTaskIdrecord component
-
originalStartTimeMillis
public long originalStartTimeMillis()Returns the value of theoriginalStartTimeMillisrecord component.- Returns:
- the value of the
originalStartTimeMillisrecord component
-