BucketState

data class BucketState(val remainingTokens: Long, val lastUpdated: Instant)

The state of a token bucket.

Parameters

remainingTokens

the number of remaining tokens in the bucket

lastUpdated

the last time the bucket was updated

Constructors

Link copied to clipboard
constructor(remainingTokens: Long, lastUpdated: Instant)

Properties

Link copied to clipboard
Link copied to clipboard