DelayStrategy

Per-attempt wait-time growth strategy applied to transient-failure retries.

attemptIndex is 0-based: index 0 is the first retry (i.e. the original attempt has already failed once); index 1 is the second retry; etc.

Entries

Link copied to clipboard

Constant delay equal to RetryPolicy.baseDelaySeconds. Same wait between every retry attempt.

Link copied to clipboard

Delay grows linearly with attempt index: delay = baseDelaySeconds × (attemptIndex + 1), then clamped to maxDelaySeconds. With base=10s, max=300s: 10s, 20s, 30s, 40s, ...

Link copied to clipboard

Delay grows exponentially: delay = baseDelaySeconds × 2^attemptIndex, clamped to maxDelaySeconds. With base=10s, max=300s: attemptIndex 0 → 10s; 1 → 20s; 2 → 40s; 3 → 80s; 4 → 160s; 5 onward → 300s (capped).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.