public class NRateLimitFixedWindowRule extends Object implements net.thevpc.nuts.concurrent.NRateLimitRule
| Constructor and Description |
|---|
NRateLimitFixedWindowRule(net.thevpc.nuts.concurrent.NRateLimitRuleModel model) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextAvailableMillis(int n) |
net.thevpc.nuts.concurrent.NRateLimitRuleModel |
toModel() |
String |
toString() |
boolean |
tryConsume(int n) |
public NRateLimitFixedWindowRule(net.thevpc.nuts.concurrent.NRateLimitRuleModel model)
public boolean tryConsume(int n)
tryConsume in interface net.thevpc.nuts.concurrent.NRateLimitRulepublic long nextAvailableMillis(int n)
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.