Functions
Link copied to clipboard
fun createDefault(scope: RateLimitScope, configurationSupplier: BucketConfigurationSupplier, deleteOnRefill: Boolean = true): RateLimiter
Creates a default RateLimiter implementation, see DefaultRateLimitHandler and InMemoryBucketAccessor for details.
Link copied to clipboard
fun createDefaultProxied(scope: RateLimitScope, proxyManager: ProxyManager<String>, configurationSupplier: BucketConfigurationSupplier, deleteOnRefill: Boolean = true): RateLimiter
Creates a RateLimiter implementation which retrieves its buckets using proxyManager, see DefaultRateLimitHandler and ProxyBucketAccessor for details.