Class PendingTask
java.lang.Object
co.elastic.clients.elasticsearch.cluster.pending_tasks.PendingTask
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PendingTask>
Json deserializer forPendingTask
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Required - Indicates whether the pending tasks are currently executing or not.final int
Required - The number that represents when the task has been inserted into the task queue.static PendingTask
final String
priority()
Required - The priority of the pending task.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
source()
Required - A general description of the cluster task that may include a reason and origin.final Time
The time since the task is waiting for being performed.final long
Required - 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupPendingTaskDeserializer
-