Class RateLimiterServiceImpl

    • Method Detail

      • createBucket

        public io.github.bucket4j.Bucket createBucket​(int rps)
      • runByCount

        public void runByCount​(java.util.concurrent.Callable<CommonResponse> callable,
                               int count,
                               java.io.File outFile)
                        throws java.lang.InterruptedException
        Specified by:
        runByCount in interface RateLimiterService
        Throws:
        java.lang.InterruptedException
      • runBySeconds

        public void runBySeconds​(java.util.concurrent.Callable<CommonResponse> callable,
                                 int seconds,
                                 java.io.File outFile)
                          throws java.lang.InterruptedException
        Specified by:
        runBySeconds in interface RateLimiterService
        Throws:
        java.lang.InterruptedException