Class ReindexRethrottleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ReindexRethrottleRequest
Throttle a reindex operation.
Change the number of requests per second for a particular reindex operation. For example:
POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1
Rethrottling that speeds up the query takes effect immediately. Rethrottling that slows down the query will take effect after completing the current batch. This behavior prevents scroll timeouts.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "reindex_rethrottle
". -
Method Summary
Modifier and TypeMethodDescriptionstatic ReindexRethrottleRequest
final Float
The throttle for this request in sub-requests per second.final String
taskId()
Required - The task identifier, which can be found by using the tasks API.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<ReindexRethrottleRequest,ReindexRethrottleResponse, _ENDPOINTErrorResponse> Endpoint "reindex_rethrottle
".
-
-
Method Details
-
of
public static ReindexRethrottleRequest of(Function<ReindexRethrottleRequest.Builder, ObjectBuilder<ReindexRethrottleRequest>> fn) -
requestsPerSecond
The throttle for this request in sub-requests per second. It can be either-1
to turn off throttling or any decimal number like1.7
or12
to throttle to that level.API name:
requests_per_second
-
taskId
Required - The task identifier, which can be found by using the tasks API.API name:
task_id
-