public class RethrottleRequest
extends <any>
| Constructor and Description |
|---|
RethrottleRequest() |
| Modifier and Type | Method and Description |
|---|---|
float |
getRequestsPerSecond()
The throttle to apply to all matching requests in sub-requests per second.
|
void |
readFrom(StreamInput in) |
RethrottleRequest |
setRequestsPerSecond(float requestsPerSecond)
Set the throttle to apply to all matching requests in sub-requests per second.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
public float getRequestsPerSecond()
public RethrottleRequest 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.public ActionRequestValidationException validate()
public void readFrom(StreamInput in)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out)
throws java.io.IOException
java.io.IOException