Class PendingTask
java.lang.Object
co.elastic.clients.elasticsearch.cluster.pending_tasks.PendingTask
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PendingTask>Json deserializer forPendingTask -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanRequired - Indicates whether the pending tasks are currently executing or not.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 TimeThe time since the task is waiting for being performed.final longRequired - The time expressed in milliseconds since the task is waiting for being performed.toString()
-
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
The time since the task is waiting for being performed.API name:
time_in_queue -
timeInQueueMillis
public final long timeInQueueMillis()Required - The time expressed in milliseconds since the task is waiting for being performed.API name:
time_in_queue_millis -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupPendingTaskDeserializer
-