Package org.opensearch.index.reindex
Class RethrottleRequestBuilder
java.lang.Object
org.opensearch.action.ActionRequestBuilder<RethrottleRequest,ListTasksResponse>
org.opensearch.action.support.tasks.TasksRequestBuilder<RethrottleRequest,ListTasksResponse,RethrottleRequestBuilder>
org.opensearch.index.reindex.RethrottleRequestBuilder
public class RethrottleRequestBuilder
extends TasksRequestBuilder<RethrottleRequest,ListTasksResponse,RethrottleRequestBuilder>
Java API support for changing the throttle on reindex tasks while they are running.
-
Field Summary
Fields inherited from class org.opensearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
ConstructorsConstructorDescriptionRethrottleRequestBuilder(OpenSearchClient client, ActionType<ListTasksResponse> action) -
Method Summary
Modifier and TypeMethodDescriptionsetRequestsPerSecond(float requestsPerSecond) Set the throttle to apply to all matching requests in sub-requests per second.Methods inherited from class org.opensearch.action.support.tasks.TasksRequestBuilder
setActions, setNodesIds, setParentTaskId, setTaskId, setTimeout
-
Constructor Details
-
RethrottleRequestBuilder
-
-
Method Details
-
setRequestsPerSecond
Set the throttle to apply to all matching requests in sub-requests per second.Float.POSITIVE_INFINITYmeans set no throttle. Throttling is done between batches, as we start the next scroll requests. That way we can increase the scroll's timeout to make sure that it contains any time that we might wait.
-