Checks whether or not the provided count of the limited resource is currently available or if it has been used up.
The amount of the limited resource to request.
True when the provided count is available, false otherwise.
Static
perCreates a rate limiter with the provided maximum available per day.
The maximum available per day.
The RateLimiter.
Static
perCreates a rate limiter with the provided maximum available per hour.
The maximum available per hour.
The RateLimiter.
Static
perCreates a rate limiter with the provided maximum available per minute.
The maximum available per minute.
The RateLimiter.
Static
perCreates a rate limiter with the provided maximum available per second.
The maximum available per seconds.
The RateLimiter.
A rate limiter that provides an "isAvailable" method which ensures that no more than the provided maximum can be used.