Class RethrottleRequest

java.lang.Object
org.elasticsearch.client.RethrottleRequest
All Implemented Interfaces:
Validatable

public class RethrottleRequest extends Object implements Validatable
A request changing throttling of a task.
  • Constructor Details

    • RethrottleRequest

      public RethrottleRequest(org.elasticsearch.tasks.TaskId taskId)
      Create a new RethrottleRequest which disables any throttling for the given taskId.
      Parameters:
      taskId - the task for which throttling will be disabled
    • RethrottleRequest

      public RethrottleRequest(org.elasticsearch.tasks.TaskId taskId, float requestsPerSecond)
      Create a new RethrottleRequest which changes the throttling for the given taskId.
      Parameters:
      taskId - the task that throttling changes will be applied to
      requestsPerSecond - the number of requests per second that the task should perform. This needs to be a positive value.
  • Method Details

    • getTaskId

      public org.elasticsearch.tasks.TaskId getTaskId()
      Returns:
      the task Id
    • getRequestsPerSecond

      public float getRequestsPerSecond()
      Returns:
      the requests per seconds value
    • toString

      public String toString()
      Overrides:
      toString in class Object