Package org.redisson.api
Class RateLimiterConfig
- java.lang.Object
-
- org.redisson.api.RateLimiterConfig
-
public class RateLimiterConfig extends Object
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RateLimiterConfig(RateType rateType, Long rateInterval, Long rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getRate()
Returns current rate value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.Long
getRateInterval()
Returns current rate time interval value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.RateType
getRateType()
Returns current rate type set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.
-
-
-
Method Detail
-
getRateType
public RateType getRateType()
Returns current rate type set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.- Returns:
- rate type
-
getRateInterval
public Long 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
public Long getRate()
Returns current rate value set throughRRateLimiter.trySetRate(RateType, long, long, RateIntervalUnit)
orRRateLimiterAsync.trySetRateAsync(RateType, long, long, RateIntervalUnit)
method.- Returns:
- rate
-
-