Class ReindexRethrottleResponse.Builder
- All Implemented Interfaces:
WithJson<ReindexRethrottleResponse.Builder>,ObjectBuilder<ReindexRethrottleResponse>
- Enclosing class:
- ReindexRethrottleResponse
ReindexRethrottleResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReindexRethrottleResponse.nodeFailures(ErrorCause value, ErrorCause... values) Node-level failures encountered while applying the rethrottle request.Node-level failures encountered while applying the rethrottle request.nodeFailures(List<ErrorCause> list) Node-level failures encountered while applying the rethrottle request.nodes(String key, ReindexNode value) Tasks grouped by node, returned only whengroup_by=nodes(the default).nodes(String key, Function<ReindexNode.Builder, ObjectBuilder<ReindexNode>> fn) Tasks grouped by node, returned only whengroup_by=nodes(the default).nodes(Map<String, ReindexNode> map) Tasks grouped by node, returned only whengroup_by=nodes(the default).protected ReindexRethrottleResponse.Builderself()taskFailures(TaskFailure value, TaskFailure... values) Per-task failures encountered while applying the rethrottle.Per-task failures encountered while applying the rethrottle.taskFailures(List<TaskFailure> list) Per-task failures encountered while applying the rethrottle.tasks(ReindexTasks value) The tasks that were successfully rethrottled.The tasks that were successfully rethrottled.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
-
nodeFailures
Node-level failures encountered while applying the rethrottle request. Will return afailed_node_exceptionwrapping ano_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:- The task has completed.
- The task cannot be found.
Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.
API name:
node_failuresAdds all elements of
listtonodeFailures. -
nodeFailures
Node-level failures encountered while applying the rethrottle request. Will return afailed_node_exceptionwrapping ano_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:- The task has completed.
- The task cannot be found.
Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.
API name:
node_failuresAdds one or more values to
nodeFailures. -
nodeFailures
public final ReindexRethrottleResponse.Builder nodeFailures(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Node-level failures encountered while applying the rethrottle request. Will return afailed_node_exceptionwrapping ano_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:- The task has completed.
- The task cannot be found.
Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.
API name:
node_failuresAdds a value to
nodeFailuresusing a builder lambda. -
taskFailures
Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reportsstatus: SERVICE_UNAVAILABLE(the HTTP response itself is still200 OK). In this case, the request can be retried until success.API name:
task_failuresAdds all elements of
listtotaskFailures. -
taskFailures
public final ReindexRethrottleResponse.Builder taskFailures(TaskFailure value, TaskFailure... values) Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reportsstatus: SERVICE_UNAVAILABLE(the HTTP response itself is still200 OK). In this case, the request can be retried until success.API name:
task_failuresAdds one or more values to
taskFailures. -
taskFailures
public final ReindexRethrottleResponse.Builder taskFailures(Function<TaskFailure.Builder, ObjectBuilder<TaskFailure>> fn) Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reportsstatus: SERVICE_UNAVAILABLE(the HTTP response itself is still200 OK). In this case, the request can be retried until success.API name:
task_failuresAdds a value to
taskFailuresusing a builder lambda. -
nodes
Tasks grouped by node, returned only whengroup_by=nodes(the default).API name:
nodesAdds all entries of
maptonodes. -
nodes
Tasks grouped by node, returned only whengroup_by=nodes(the default).API name:
nodesAdds an entry to
nodes. -
nodes
public final ReindexRethrottleResponse.Builder nodes(String key, Function<ReindexNode.Builder, ObjectBuilder<ReindexNode>> fn) Tasks grouped by node, returned only whengroup_by=nodes(the default).API name:
nodesAdds an entry to
nodesusing a builder lambda. -
tasks
The tasks that were successfully rethrottled. Always returned in serverless. Returned withgroup_by=noneorgroup_by=parentsin stack.API name:
tasks -
tasks
public final ReindexRethrottleResponse.Builder tasks(Function<ReindexTasks.Builder, ObjectBuilder<ReindexTasks>> fn) The tasks that were successfully rethrottled. Always returned in serverless. Returned withgroup_by=noneorgroup_by=parentsin stack.API name:
tasks -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder>
-
build
Builds aReindexRethrottleResponse.- Specified by:
buildin interfaceObjectBuilder<ReindexRethrottleResponse>- Throws:
NullPointerException- if some of the required fields are null.
-