Package org.redisson.api
Class RateLimiterConfig
java.lang.Object
org.redisson.api.RateLimiterConfig
- Author:
- Nikita Koksharov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRate()
Returns current rate value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.Returns current rate time interval value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.Returns current rate type set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.
-
Constructor Details
-
RateLimiterConfig
-
-
Method Details
-
getRateType
Returns current rate type set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.- Returns:
- rate type
-
getRateInterval
Returns current rate time interval value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.- Returns:
- rate time interval in milliseconds
-
getRate
Returns current rate value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.- Returns:
- rate
-