Class RethrottleRequestBuilder


Java API support for changing the throttle on reindex tasks while they are running.
  • Constructor Details

  • Method Details

    • setRequestsPerSecond

      public RethrottleRequestBuilder setRequestsPerSecond(float requestsPerSecond)
      Set the throttle to apply to all matching requests in sub-requests per second. 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.