Class RethrottleRequest

    • Constructor Detail

      • RethrottleRequest

        public RethrottleRequest()
      • RethrottleRequest

        public RethrottleRequest​(StreamInput in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getRequestsPerSecond

        public float getRequestsPerSecond()
        The throttle to apply to all matching requests in sub-requests per second. 0 means set no throttle and that is the default.
      • setRequestsPerSecond

        public RethrottleRequest 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.