TestConsumptionResult

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

Constructors

Link copied to clipboard
constructor(couldHaveConsumed: Boolean, remaining: Long, resetTime: Instant)

Properties

Link copied to clipboard

Whether a token could have been consumed

Link copied to clipboard

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

The time at which the bucket will be reset.