Interface SharedRateLimiterFactory.RateProvider

    • Method Detail

      • getDesiredRate

        long getDesiredRate()
        Calculate the current rate for the RateLimiter.
        Returns:
        Count of permits which should be provided per second. A non-positive count is taken to indicate that no rate limiting should be performed.