TestConsumptionResult

data class TestConsumptionResult(couldHaveConsumed: Boolean, remaining: Long, resetTime: Instant)

Properties

Link copied to clipboard
val couldHaveConsumed: Boolean

Whether a token could have been consumed

Link copied to clipboard
val remaining: Long

Count of tokens remaining in the bucket Note - this is the actual amount remaining, not the amount that would be remaining if the test consumption had been a real consumption

Link copied to clipboard
val resetTime: Instant

The time at which the bucket will be reset.