public class RethrottleRequestBuilder extends org.elasticsearch.action.support.tasks.TasksRequestBuilder<RethrottleRequest,org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse,RethrottleRequestBuilder>
| Constructor and Description |
|---|
RethrottleRequestBuilder(org.elasticsearch.client.ElasticsearchClient client,
org.elasticsearch.action.Action<RethrottleRequest,org.elasticsearch.action.admin.cluster.node.tasks.list.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, setTaskId, setTimeoutpublic RethrottleRequestBuilder(org.elasticsearch.client.ElasticsearchClient client,
org.elasticsearch.action.Action<RethrottleRequest,org.elasticsearch.action.admin.cluster.node.tasks.list.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.