Package-level declarations

Types

Link copied to clipboard
data class BucketState(val remainingTokens: Long, val lastUpdated: Instant)

The state of a token bucket.

Link copied to clipboard
class TokenBucketLimiter(val capacity: Long, val refillTokenInterval: Duration, clock: Clock, stateStorage: StateStorage = MemoryStateStorage()) : RateLimiter

A token bucket rate limiter implementation.