Package-level declarations
Types
Link copied to clipboard
data class RetryConfig(val maxAttempts: Int, val retryPredicate: OnExceptionPredicate, val retryOnResultPredicate: OnResultPredicate, val delayStrategy: RetryDelayStrategy, val exceptionHandler: ExceptionHandler)
Represents a configuration for retrying an operation. A configuration is a collection of policies that determine the behaviour of a retry mechanism. To create an instance, use the retryConfig builder.
Link copied to clipboard
class RetryConfigBuilder(val baseConfig: RetryConfig = defaultRetryConfig) : ConfigBuilder<RetryConfig>
Builder for configuring a RetryConfig instance. Use retryConfig to create one.
Functions
Link copied to clipboard
Creates a RetryConfig instance using the default configuration.
Link copied to clipboard
Creates a RetryConfig instance using the provided configuration.
Creates a RetryConfig instance using the provided configuration which will be based on the received configuration.
Link copied to clipboard
Converts a DelayStrategy into a RetryDelayStrategy by ignoring the context.