RateLimiterSnapshot

data class RateLimiterSnapshot(val remainingCalls: Int, val timeToRefill: Duration)

Point-in-time snapshot of the rate limiter policy state.

Constructors

Link copied to clipboard
constructor(remainingCalls: Int, timeToRefill: Duration)

Properties

Link copied to clipboard

Number of tokens (calls) still available in the current window.

Link copied to clipboard

Duration until the bucket is refilled.