public class NRateLimitLeakyBucketRule extends Object implements net.thevpc.nuts.concurrent.NRateLimitRule
| Constructor and Description |
|---|
NRateLimitLeakyBucketRule(net.thevpc.nuts.concurrent.NRateLimitRuleModel model) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextAvailableMillis(int count) |
net.thevpc.nuts.concurrent.NRateLimitRuleModel |
toModel() |
String |
toString() |
boolean |
tryConsume(int count) |
public NRateLimitLeakyBucketRule(net.thevpc.nuts.concurrent.NRateLimitRuleModel model)
public boolean tryConsume(int count)
tryConsume in interface net.thevpc.nuts.concurrent.NRateLimitRulepublic long nextAvailableMillis(int count)
nextAvailableMillis in interface net.thevpc.nuts.concurrent.NRateLimitRulepublic net.thevpc.nuts.concurrent.NRateLimitRuleModel toModel()
toModel in interface net.thevpc.nuts.concurrent.NRateLimitRuleCopyright © 2026 vpc open source initiative. All rights reserved.