public class RethrottleRequestBuilder extends TasksRequestBuilder<RethrottleRequest,ListTasksResponse,RethrottleRequestBuilder>
action, client, request| Constructor and Description |
|---|
RethrottleRequestBuilder(ElasticsearchClient client,
Action<RethrottleRequest,ListTasksResponse,RethrottleRequestBuilder> action) |
| Modifier and Type | Method and Description |
|---|---|
RethrottleRequestBuilder |
setRequestsPerSecond(float requestsPerSecond)
Set the throttle to apply to all matching requests in sub-requests per second.
|
setActions, setNodesIds, setParentTaskId, setTaskId, setTimeoutbeforeExecute, execute, execute, get, get, get, requestpublic RethrottleRequestBuilder(ElasticsearchClient client, Action<RethrottleRequest,ListTasksResponse,RethrottleRequestBuilder> action)
public RethrottleRequestBuilder setRequestsPerSecond(float requestsPerSecond)
Float.POSITIVE_INFINITY means 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.