Class RateLimiter


  • public class RateLimiter
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RateLimiter.Builder  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.time.Duration MINUTE  
      static java.time.Duration SECOND  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAllowed()  
      boolean isRateLimited()  
      • Methods inherited from class java.lang.Object

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

      • SECOND

        public static final java.time.Duration SECOND
      • MINUTE

        public static final java.time.Duration MINUTE
    • Method Detail

      • isRateLimited

        public boolean isRateLimited()
      • isAllowed

        public boolean isAllowed()