public class LeakyTokenBucketStrategy extends TokenBucketStrategy
| Modifier and Type | Field and Description |
|---|---|
protected long |
mLeaked |
protected long |
mLeakInterval |
mCapacity, mNextRefillTime, mRefillStrategy, mTokens| Constructor and Description |
|---|
LeakyTokenBucketStrategy(long pCapacity,
IRefillStrategy pRefillStrategy,
long pTokensLeaked,
long pLeakInterval,
TimeUnit pLeakIntervalTimeUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
updateTokens() |
getCapacity, getCurrentTokens, getNextRefillTime, getRefillIntervalInMillis, getTokens, isThrottled, isThrottledpublic LeakyTokenBucketStrategy(long pCapacity,
IRefillStrategy pRefillStrategy,
long pTokensLeaked,
long pLeakInterval,
TimeUnit pLeakIntervalTimeUnit)
protected void updateTokens()
updateTokens in class TokenBucketStrategylpezet