Class CombinedRateLimiter

java.lang.Object
org.elasticsearch.common.util.CombinedRateLimiter

public class CombinedRateLimiter extends Object
A rate limiter designed for multiple concurrent users.
  • Constructor Details

    • CombinedRateLimiter

      public CombinedRateLimiter(ByteSizeValue maxBytesPerSec)
  • Method Details

    • maybePause

      public long maybePause(int bytes)
    • setMBPerSec

      public void setMBPerSec(ByteSizeValue maxBytesPerSec)
    • getMBPerSec

      public double getMBPerSec()