OptionalattemptsTotal attempts, including the first. Anything below one is treated as one.
OptionalbackoffDelay before the second attempt, in milliseconds, doubling thereafter.
OptionaleventThe event name those lines carry.
OptionalloggerReceives one warn line before each re-attempt.
OptionalisWhether a given failure is worth another attempt.
Replaces the default judgement rather than adding to it. A caller that only
wants to refuse one more kind of failure should return false for it and
defer to Retry.isRetryable for everything else.
What one retried operation may override.
Remarks
Every field is optional. The attempt count and the backoff default to the
deliverymodule, which systemDefaults registers withretriesandretryBackoffMs, so a deployment tunes every retry in one place and a call site overrides only what is genuinely different about its operation.Declared beside Retry in
core/rather than intypes/, because it names Logger, and the leaf layers do not import fromcore/.Author
Bayu Dwiyan Satria
Version
1.3.1
Since
1.3.1