public class NRateLimitFixedWindowRule extends Object implements NRateLimitRule
| Constructor and Description |
|---|
NRateLimitFixedWindowRule(NRateLimitRuleModel model) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextAvailableMillis(int n) |
NRateLimitRuleModel |
toModel() |
String |
toString() |
boolean |
tryConsume(int n) |
public NRateLimitFixedWindowRule(NRateLimitRuleModel model)
public boolean tryConsume(int n)
tryConsume in interface NRateLimitRulepublic long nextAvailableMillis(int n)
nextAvailableMillis in interface NRateLimitRulepublic NRateLimitRuleModel toModel()
toModel in interface NRateLimitRuleCopyright © 2025 vpc open source initiative. All rights reserved.