The balance or number of retries that can be made now.
Indicates a deposit, or credit, which will typically permit future withdrawals.
Check whether or not there is enough balance remaining to issue a retry, or make a withdrawal.
Check whether or not there is enough balance remaining to issue a retry, or make a withdrawal.
If true
, if the retry is allowed and a withdrawal will take
place.
If false
, the balance should remain untouched.
Represents a budget for retrying requests.
A retry budget is useful for attenuating the amplifying effects of many clients within a process retrying requests multiple times. This acts as a form of coordination between those retries.
Implementations must be thread-safe.
Retries for how budgets get translated into Filters.
RetryBudget.apply for creating instances.