RetryConfig

constructor(maxAttempts: Int, retryPredicate: OnExceptionPredicate, retryOnResultPredicate: OnResultPredicate, delayStrategy: RetryDelayStrategy, exceptionHandler: ExceptionHandler)(source)

Parameters

maxAttempts

the maximum number of attempts (including the initial call as the first attempt).

retryPredicate

the predicate to determine if the operation should be retried based on the caught throwable.

retryOnResultPredicate

the predicate to determine if the operation should be retried based on its result.

delayStrategy

the strategy to determine the delay duration between retries.

exceptionHandler

the handler for exceptions that occur during a retry operation.