Class PendingTask
java.lang.Object
org.opensearch.client.opensearch.cluster.pending_tasks.PendingTask
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PendingTask.Builder,PendingTask>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class PendingTask
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<PendingTask.Builder,PendingTask>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PendingTask> Json deserializer forPendingTask -
Method Summary
Modifier and TypeMethodDescriptionstatic PendingTask.Builderbuilder()booleanfinal booleanRequired - Indicates whether the pending tasks are currently executing or not.inthashCode()final intRequired - The number that represents when the task has been inserted into the task queue.static PendingTaskfinal Stringpriority()Required - The priority of the pending task.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsource()Required - A general description of the cluster task that may include a reason and origin.final TimeAPI name:time_in_queuefinal longRequired - API name:time_in_queue_millisCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPendingTask
-
-
Method Details
-
of
-
executing
public final boolean executing()Required - Indicates whether the pending tasks are currently executing or not.API name:
executing -
insertOrder
public final int insertOrder()Required - The number that represents when the task has been inserted into the task queue.API name:
insert_order -
priority
Required - The priority of the pending task. The valid priorities in descending priority order are:IMMEDIATE>URGENT>HIGH>NORMAL>LOW>LANGUID.API name:
priority -
source
Required - A general description of the cluster task that may include a reason and origin.API name:
source -
timeInQueue
API name:time_in_queue -
timeInQueueMillis
public final long timeInQueueMillis()Required - API name:time_in_queue_millis -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PendingTask.Builder,PendingTask> - Returns:
- a new builder instance.
-
builder
-
setupPendingTaskDeserializer
-
hashCode
public int hashCode() -
equals
-