Package org.elasticsearch.common.util
Class CombinedRateLimiter
java.lang.Object
org.elasticsearch.common.util.CombinedRateLimiter
A rate limiter designed for multiple concurrent users.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
long
maybePause(int bytes)
void
setMBPerSec(ByteSizeValue maxBytesPerSec)
-
Constructor Details
-
CombinedRateLimiter
-
-
Method Details
-
maybePause
public long maybePause(int bytes) -
setMBPerSec
-
getMBPerSec
public double getMBPerSec()
-