Package-level declarations
Types
Link copied to clipboard
interface BucketAccessor
Retrieves rate limit buckets given the execution context.
Link copied to clipboard
interface BucketConfigurationSupplier
A supplier for BucketConfiguration, called when a bucket is about to get created by a BucketAccessor.
Link copied to clipboard
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
class InMemoryBucketAccessor(scope: RateLimitScope, configurationSupplier: BucketConfigurationSupplier) : BucketAccessor
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
Converts this configuration into a BucketConfigurationSupplier.