RateLimiterpublic class Bucket4jHazelcastRateLimiter extends AbstractCacheRateLimiter
QUOTA_SUFFIX| Constructor | Description |
|---|---|
Bucket4jHazelcastRateLimiter(com.hazelcast.core.IMap<String,io.github.bucket4j.grid.GridBucketState> rateLimit) |
| Modifier and Type | Method | 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 io.github.bucket4j.grid.ProxyManager<String> |
getProxyManager(io.github.bucket4j.grid.hazelcast.Hazelcast extension) |
consumepublic Bucket4jHazelcastRateLimiter(com.hazelcast.core.IMap<String,io.github.bucket4j.grid.GridBucketState> rateLimit)
protected io.github.bucket4j.grid.ProxyManager<String> getProxyManager(io.github.bucket4j.grid.hazelcast.Hazelcast 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 © 2019. All rights reserved.