All Classes and Interfaces
Class
Description
AtomicRateLimiter splits all nanoseconds from the start of epoch into cycles.AtomicRateLimiter.State represents immutable state of AtomicRateLimiter
where:
activeCycle - AtomicRateLimiter cycle number that was used
by the last RateLimiter.acquirePermission() call.Backend RateLimiter manager.
A RateLimiter instance is thread-safe can be used to decorate multiple requests.
An EventPublisher which can be used to register event consumers.
An event which is created by a
RateLimiter.Manages all RateLimiter instances.
Exception that indicates that current thread was not able to acquire permission from
RateLimiter.A RateLimiter implementation that consists of
Semaphore and scheduler that will refresh
permissions after each RateLimiterConfig.getLimitRefreshPeriod(), you can invoke
SemaphoreBasedRateLimiter.shutdown() to close the limiter.