Class PendingTasksRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.cat.CatRequestBase.AbstractBuilder<PendingTasksRequest.Builder>
co.elastic.clients.elasticsearch.cat.PendingTasksRequest.Builder
- All Implemented Interfaces:
WithJson<PendingTasksRequest.Builder>
,ObjectBuilder<PendingTasksRequest>
- Enclosing class:
- PendingTasksRequest
public static class PendingTasksRequest.Builder
extends CatRequestBase.AbstractBuilder<PendingTasksRequest.Builder>
implements ObjectBuilder<PendingTasksRequest>
Builder for
PendingTasksRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPendingTasksRequest
.Iftrue
, the request computes the list of selected nodes from the local cluster state.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.protected PendingTasksRequest.Builder
self()
Unit used to display time values.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
local
Iftrue
, the request computes the list of selected nodes from the local cluster state. Iffalse
the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.API name:
local
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
masterTimeout
public final PendingTasksRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node.API name:
master_timeout
-
time
Unit used to display time values.API name:
time
-
self
- Specified by:
self
in classCatRequestBase.AbstractBuilder<PendingTasksRequest.Builder>
-
build
Builds aPendingTasksRequest
.- Specified by:
build
in interfaceObjectBuilder<PendingTasksRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-