Retry

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Retry(val enabled: Boolean = true, val maxRetries: Int = DEFAULT_MAX_RETRIES, val minBackoff: Int = DEFAULT_MIN_BACKOFF, val executionTimeout: Int = DEFAULT_EXECUTION_TIMEOUT, val recoverable: Array<KClass<out Throwable>> = [], val unrecoverable: Array<KClass<out Throwable>> = [])

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val enabled: Boolean = true
Link copied to clipboard

执行超时时间

Link copied to clipboard

最大重试次数

Link copied to clipboard

the minimum Duration for the first backoff

Link copied to clipboard
Link copied to clipboard