Class PendingTask.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PendingTask.Builder>
co.elastic.clients.elasticsearch.cluster.pending_tasks.PendingTask.Builder
- All Implemented Interfaces:
WithJson<PendingTask.Builder>,ObjectBuilder<PendingTask>
- Enclosing class:
- PendingTask
public static class PendingTask.Builder
extends WithJsonObjectBuilderBase<PendingTask.Builder>
implements ObjectBuilder<PendingTask>
Builder for
PendingTask.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPendingTask.final PendingTask.Builderexecuting(boolean value) Required - Indicates whether the pending tasks are currently executing or not.final PendingTask.BuilderinsertOrder(int value) Required - The number that represents when the task has been inserted into the task queue.final PendingTask.BuilderRequired - The priority of the pending task.protected PendingTask.Builderself()final PendingTask.BuilderRequired - A general description of the cluster task that may include a reason and origin.final PendingTask.BuildertimeInQueue(Time value) The time since the task is waiting for being performed.final PendingTask.BuilderThe time since the task is waiting for being performed.final PendingTask.BuildertimeInQueueMillis(long value) Required - The time expressed in milliseconds since the task is waiting for being performed.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executing
Required - Indicates whether the pending tasks are currently executing or not.API name:
executing -
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 -
timeInQueue
The time since the task is waiting for being performed.API name:
time_in_queue -
timeInQueueMillis
Required - The time expressed in milliseconds since the task is waiting for being performed.API name:
time_in_queue_millis -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PendingTask.Builder>
-
build
Builds aPendingTask.- Specified by:
buildin interfaceObjectBuilder<PendingTask>- Throws:
NullPointerException- if some of the required fields are null.
-