Class TokenBucketRetryCondition.Capacity
java.lang.Object
software.amazon.awssdk.core.retry.conditions.TokenBucketRetryCondition.Capacity
- Enclosing class:
TokenBucketRetryCondition
The number of tokens in the token bucket after a specific token acquisition succeeds. This can be retrieved via
TokenBucketRetryCondition.getCapacityForExecution(ExecutionAttributes)
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
int
The number of tokens acquired by the last token acquisition.int
The number of tokens in the token bucket.
-
Method Details
-
builder
-
capacityAcquired
public int capacityAcquired()The number of tokens acquired by the last token acquisition. -
capacityRemaining
public int capacityRemaining()The number of tokens in the token bucket.
-