RateLimiterAlgorithm
Determines the algorithm to use for the rate limiter
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
Acquires permits to execute the operation. This method should block until a permit is available.
Acquires permits to execute the operation. This method should block until a permit is available.
Attributes
Returns the time in nanoseconds that needs to elapse until the next update. It should not modify internal state.
Returns the time in nanoseconds that needs to elapse until the next update. It should not modify internal state.
Attributes
Runs the operation, allowing the algorithm to take into account its duration, if needed.
Runs the operation, allowing the algorithm to take into account its duration, if needed.
Attributes
Tries to acquire permits to execute the operation. This method should not block.
Tries to acquire permits to execute the operation. This method should not block.
Attributes
Updates the internal state of the rate limiter to check whether new operations can be accepted.
Updates the internal state of the rate limiter to check whether new operations can be accepted.
Attributes
Concrete methods
Acquires a permit to execute the operation. This method should block until a permit is available.
Acquires a permit to execute the operation. This method should block until a permit is available.
Attributes
Runs the operation, allowing the algorithm to take into account its duration, if needed.
Runs the operation, allowing the algorithm to take into account its duration, if needed.
Attributes
Tries to acquire a permit to execute the operation. This method should not block.
Tries to acquire a permit to execute the operation. This method should not block.