RetriesOutcome

sealed class RetriesOutcome<out A>

Outcome of a single retryWith invocation; describes the whole retry sequence, not a single retry attempt. The leaf-record constructors consume this to build their Completed / Failed records.

Inheritors

Types

Link copied to clipboard
data class Completed<out A>(val result: A, val finalAttemptMetrics: AttemptMetrics, val previousAttempts: List<FailedAttempt>) : RetriesOutcome<A>

The operation succeeded on its final attempt.

Link copied to clipboard
data class Failed(val finalFailure: AnalyzedFailure, val finalException: Exception, val finalAttemptMetrics: AttemptMetrics, val previousAttempts: List<FailedAttempt>) : RetriesOutcome<Nothing>

The operation failed on its final attempt and was not retried further.

Properties

Link copied to clipboard

Metrics of the final attempt (the successful one on Completed, the last failed one on Failed).

Link copied to clipboard

Every failed attempt that preceded the final attempt, in execution order.