public abstract class AbstractBucket4jRateLimiter<T extends io.github.bucket4j.ConfigurationBuilder<T>,E extends io.github.bucket4j.Extension<T>> extends AbstractCacheRateLimiter
QUOTA_SUFFIX| Constructor and Description |
|---|
AbstractBucket4jRateLimiter(Class<E> extension) |
| 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) |
protected abstract io.github.bucket4j.grid.ProxyManager<String> |
getProxyManager(E extension) |
void |
init() |
consumepublic void init()
protected abstract io.github.bucket4j.grid.ProxyManager<String> getProxyManager(E extension)
protected 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.