Package-level declarations

Types

Link copied to clipboard
interface BucketAccessor

Retrieves rate limit buckets given the execution context.

Link copied to clipboard

A supplier for BucketConfiguration, called when a bucket is about to get created by a BucketAccessor.

Link copied to clipboard
interface BucketKeySupplier<K>

Retrieves the bucket key given the execution context.

Link copied to clipboard
object Buckets

Collection of factories to create a BucketConfiguration.

Link copied to clipboard

Default in-memory BucketAccessor implementation using RateLimitScope.

Link copied to clipboard
class ProxyBucketAccessor<K>(proxyManager: ProxyManager<K>, keySupplier: BucketKeySupplier<K>, configurationSupplier: BucketConfigurationSupplier) : BucketAccessor

BucketAccessor implementation with a ProxyManager to retrieve buckets, and a key made using keySupplier.

Functions

Link copied to clipboard