java.lang.Object
co.elastic.clients.elasticsearch.cluster.pending_tasks.PendingTask
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class PendingTask extends Object implements JsonpSerializable
See Also:
  • Field Details

  • 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

      public final String 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

      public final String source()
      Required - A general description of the cluster task that may include a reason and origin.

      API name: source

    • timeInQueue

      @Nullable public final Time 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupPendingTaskDeserializer

      protected static void setupPendingTaskDeserializer(ObjectDeserializer<PendingTask.Builder> op)