public interface RateLimiterEndpoint extends LimiterEndpoint
LimiterEndpoint
Modifier and Type | Method and Description |
---|---|
void |
forceUseUnit()
Consumes one unit of work.
|
void |
forceUseUnits(int units)
Consumes the given number of units of work.
|
boolean |
useUnit()
Requests one unit of work.
|
boolean |
useUnits(int units)
Requests the given number of units of work.
|
boolean useUnit()
boolean useUnits(int units)
void forceUseUnit()
void forceUseUnits(int units)