Package org.elasticsearch.client
Class RethrottleRequest
java.lang.Object
org.elasticsearch.client.RethrottleRequest
- All Implemented Interfaces:
Validatable
A request changing throttling of a task.
-
Field Summary
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
ConstructorDescriptionRethrottleRequest
(TaskId taskId) Create a newRethrottleRequest
which disables any throttling for the given taskId.RethrottleRequest
(TaskId taskId, float requestsPerSecond) Create a newRethrottleRequest
which changes the throttling for the given taskId. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Constructor Details
-
RethrottleRequest
Create a newRethrottleRequest
which disables any throttling for the given taskId.- Parameters:
taskId
- the task for which throttling will be disabled
-
RethrottleRequest
Create a newRethrottleRequest
which changes the throttling for the given taskId.- Parameters:
taskId
- the task that throttling changes will be applied torequestsPerSecond
- the number of requests per second that the task should perform. This needs to be a positive value.
-
-
Method Details