Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_MAX_ATTEMPTS: Int = 5

The attempts of a handler whose budget gives none, the runtime's wow.subscription.retry.max-attempts.

Link copied to clipboard

No setting given.

Functions

Link copied to clipboard

The budget retry gives; null when it is absent or gives nothing.

fun of(function: Retry?, processor: Retry?): HandlerRetry?

The budget of a handler annotated function in a processor annotated processor: the handler's settings, each one it does not give being the processor's. Null when neither gives any.

fun of(maxAttempts: Int = 0, initialBackoff: String = "", maxBackoff: String = "", timeout: String = "", multiplier: Double = 0.0): HandlerRetry?

The budget of the @Retry settings given: a maxAttempts of 0 and blank durations are not given; durations are Kotlin's (500ms, 1m 30s) or ISO-8601 (PT2S). Null when none is given.

fun of(maxAttempts: Int, initialBackoff: String, maxBackoff: String, timeout: String, recoverable: List<Class<out Throwable>>, unrecoverable: List<Class<out Throwable>>, multiplier: Double = 0.0, systemic: List<Class<out Throwable>> = emptyList()): HandlerRetry?

The budget of the @Retry settings given, as of without the exception classes, and the classes of @Retry(recoverable, unrecoverable, systemic): an empty list is not given.