Class RateLimiter


  • public class RateLimiter
    extends Object
    A class that provides simple interval-based rate limiting implementation.
    • Constructor Detail

      • RateLimiter

        public RateLimiter​(int rate,
                           long interval,
                           TimeUnit unit)
    • Method Detail

      • allow

        public boolean allow()