Class CombinedRateLimiter


  • public class CombinedRateLimiter
    extends java.lang.Object
    A rate limiter designed for multiple concurrent users.
    • Method Summary

      Modifier and Type Method Description
      long maybePause​(int bytes)  
      void setMBPerSec​(ByteSizeValue maxBytesPerSec)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CombinedRateLimiter

        public CombinedRateLimiter​(ByteSizeValue maxBytesPerSec)
    • Method Detail

      • maybePause

        public long maybePause​(int bytes)
      • setMBPerSec

        public void setMBPerSec​(ByteSizeValue maxBytesPerSec)