Config

The configuration for an adaptive client-side rate limiter

Constructors

Link copied to clipboard

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

How much to scale back after receiving a throttling response. Ranges from 0.0 (do not scale back) to 1.0 (scale back completely). Defaults to 0.7 (scale back 70%).

Link copied to clipboard
val measurementBucketDuration: <Error class: unknown class>

The duration of individual measurement buckets used in measuring the effective transaction rate. Defaults to 0.5 seconds.

Link copied to clipboard

The minimum capacity of permits. Defaults to 1.

Link copied to clipboard

The minimum refill rate (per second) of permits. Defaults to 0.5.

Link copied to clipboard

How much to scale up after receiving a successful response. Ranges from 0.0 (do not scale up) to 1.0 (scale up completely). Defaults to 0.4 (scale up 40%).

Link copied to clipboard

The exponential smoothing factor to apply when measuring the effective rate of transactions. Ranges from 0.0 (do not accept new rate updates) to 1.0 (immediately accept new rates with no smoothing). Defaults to 0.8 (new rates are factored into the measured rate at 80%).

Functions

Link copied to clipboard