Package aws.smithy.kotlin.runtime.retries.policy

Types

Link copied to clipboard
abstract class Acceptor<in I, in O>(val state: RetryDirective)

An object that evaluates an operation request and result to determine if a specific condition is matched.

Link copied to clipboard
class AcceptorRetryPolicy<in I, in O>(val input: I, acceptors: List<Acceptor<I, O>>) : RetryPolicy<O>

A RetryPolicy that iterates through a list of Acceptor instances to determine the appropriate RetryDirective. Each Acceptor is evaluated in list order until one returns a non-null result. If no acceptor returns a non-null result, the directive is RetryDirective.RetryError on success or RetryDirective.TerminateAndFail on exception.

Link copied to clipboard
class ErrorTypeAcceptor(state: RetryDirective, val errorType: String) : Acceptor<Any, Any>

An Acceptor that matches based on a specific error type.

Link copied to clipboard
class InputOutputAcceptor<I, O>(state: RetryDirective, val matcher: (InputOutputAcceptor.InputOutput<I, O>) -> Boolean) : Acceptor<I, O>

An Acceptor that delegates to an input/output matcher function.

Link copied to clipboard
class OutputAcceptor<O>(state: RetryDirective, val matcher: (O) -> Boolean) : Acceptor<Any, O>

An Acceptor that delegates to an output matcher function.

Link copied to clipboard
sealed class RetryDirective

The evaluation of a single try.

Link copied to clipboard
enum RetryErrorType : Enum<RetryErrorType>

A type of error that may be retried.

Link copied to clipboard
interface RetryPolicy<in R>

A policy that evaluates a Result from a retry attempt and indicates the action a aws.smithy.kotlin.runtime.retries.RetryStrategy should take next.

Link copied to clipboard
open class StandardRetryPolicy : RetryPolicy<Any?>

A standard retry policy which attempts to derive information from the Smithy exception hierarchy.

Link copied to clipboard
class SuccessAcceptor(state: RetryDirective, val success: Boolean) : Acceptor<Any, Any>

An Acceptor that matches based on a response's success or failure.