Retry Policy
Runtime policy consumed by the retry wrapper. Translates an observed failure into "should we retry now?" + "if so, wait how long?".
attemptIndex is 0-based throughout: 0 means "the original attempt has just failed; should we retry once?"; 1 means "the first retry has just failed; should we retry again?"; etc.
Constructors
Types
Predefined RetryPolicy instances.
Properties
Base delay in seconds, used as the starting point by every DelayStrategy.
Maximum number of retries after the original attempt (the original attempt itself is not counted).
Upper bound in seconds that any computed delay is clamped to.
Per-attempt delay growth strategy applied between retries.
How failures of TransiencyLevel.UNKNOWN transiency are treated.
Functions
Computes the wall-clock delay before the next retry attempt, per the configured strategy and capped at maxDelaySeconds.
Returns true if the policy decides to retry after this particular failure.