Builder
A mutable builder for a Config
Properties
Link copied to clipboard
The amount of capacity to decrement for the initial try
Link copied to clipboard
The amount of capacity to return if the initial try is successful
Link copied to clipboard
The maximum capacity for the bucket
Link copied to clipboard
The amount of capacity to return per second. Setting this to 0 automatically sets useCircuitBreakerMode to true
.
Link copied to clipboard
The amount of capacity to decrement for timeout or throttling retries
Link copied to clipboard
When true
, indicates that attempts to acquire tokens or schedule retries should fail if all capacity has been depleted. When false
, calls to acquire tokens or schedule retries will delay until sufficient capacity is available. This property will automatically be set to true
if refillUnitsPerSecond is 0.