Package org.elasticsearch.common.util
Class CombinedRateLimiter
- java.lang.Object
-
- org.elasticsearch.common.util.CombinedRateLimiter
-
public class CombinedRateLimiter extends java.lang.Object
A rate limiter designed for multiple concurrent users.
-
-
Constructor Summary
Constructors Constructor Description CombinedRateLimiter(ByteSizeValue maxBytesPerSec)
-
Method Summary
Modifier and Type Method Description long
maybePause(int bytes)
void
setMBPerSec(ByteSizeValue maxBytesPerSec)
-
-
-
Constructor Detail
-
CombinedRateLimiter
public CombinedRateLimiter(ByteSizeValue maxBytesPerSec)
-
-
Method Detail
-
maybePause
public long maybePause(int bytes)
-
setMBPerSec
public void setMBPerSec(ByteSizeValue maxBytesPerSec)
-
-