Module org.elasticsearch.server
Record Class PendingClusterTask
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.service.PendingClusterTask
- All Implemented Interfaces:
Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionPendingClusterTask(long insertOrder, Priority priority, Text source, long timeInQueue, boolean executing) Creates an instance of aPendingClusterTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexecutingrecord component.longlongfinal inthashCode()Returns a hash code value for this object.longReturns the value of theinsertOrderrecord component.booleanpriority()Returns the value of thepriorityrecord component.source()Returns the value of thesourcerecord component.longReturns the value of thetimeInQueuerecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
PendingClusterTask
- Throws:
IOException
-
PendingClusterTask
public PendingClusterTask(long insertOrder, Priority priority, Text source, long timeInQueue, boolean executing) Creates an instance of aPendingClusterTaskrecord class.- Parameters:
insertOrder- the value for theinsertOrderrecord componentpriority- the value for thepriorityrecord componentsource- the value for thesourcerecord componenttimeInQueue- the value for thetimeInQueuerecord componentexecuting- the value for theexecutingrecord component
-
-
Method Details
-
getInsertOrder
public long getInsertOrder() -
getPriority
-
getSource
-
getTimeInQueueInMillis
public long getTimeInQueueInMillis() -
getTimeInQueue
-
isExecuting
public boolean isExecuting() -
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 '=='. -
insertOrder
public long insertOrder()Returns the value of theinsertOrderrecord component.- Returns:
- the value of the
insertOrderrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
timeInQueue
public long timeInQueue()Returns the value of thetimeInQueuerecord component.- Returns:
- the value of the
timeInQueuerecord component
-
executing
public boolean executing()Returns the value of theexecutingrecord component.- Returns:
- the value of the
executingrecord component
-