public class RedisRateLimiter extends AbstractCacheRateLimiter
QUOTA_SUFFIX| Constructor and Description |
|---|
RedisRateLimiter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcRemainingLimit(Long limit,
Long refreshInterval,
Long requestTime,
String key,
Rate rate) |
protected void |
calcRemainingQuota(Long quota,
Long refreshInterval,
Long requestTime,
String key,
Rate rate) |
consumeprotected void calcRemainingLimit(Long limit, Long refreshInterval, Long requestTime, String key, Rate rate)
calcRemainingLimit in class AbstractCacheRateLimiterprotected void calcRemainingQuota(Long quota, Long refreshInterval, Long requestTime, String key, Rate rate)
calcRemainingQuota in class AbstractCacheRateLimiterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.