Package-level declarations

Types

Link copied to clipboard

Allows cancellation of rate limits by refilling tokens, usually delegated on events.

Link copied to clipboard
class DefaultRateLimiter(val scope: RateLimitScope, bucketFactory: BucketFactory, deleteOnRefill: Boolean = true) : RateLimiter, RateLimitHandler, BucketAccessor

Default RateLimiter implementation, based on DefaultRateLimitHandler and DefaultBucketAccessor.

Link copied to clipboard

Retrieves rate limit buckets and handles rate limits by combining BucketAccessor and RateLimitHandler.

Link copied to clipboard
fun interface RateLimiterFactory
Link copied to clipboard

Container for rate limiters data.

Link copied to clipboard
Provides rate limit scopes for the default rate limit implementation.