Package io.kestra.core.annotations
Annotation Interface Retryable
@Inherited
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE,ANNOTATION_TYPE})
@Around
@Type(OverrideRetryInterceptor.class)
public @interface Retryable
-
Field Details
-
MAX_INTEGRAL_DIGITS
static final int MAX_INTEGRAL_DIGITS- See Also:
-
-
Element Details
-
value
- Returns:
- The exception types to include (defaults to all)
- Default:
- {}
-
includes
- Returns:
- The exception types to include (defaults to all)
- Default:
- {}
-
excludes
- Returns:
- The exception types to exclude (defaults to none)
- Default:
- {}
-
attempts
- Returns:
- The maximum number of retry attempts
- Default:
- "${kestra.retries.attempts:5}"
-
delay
String delay- Returns:
- The delay between retry attempts
- Default:
- "${kestra.retries.delay:1s}"
-
maxDelay
String maxDelay- Returns:
- The maximum overall delay
- Default:
- "${kestra.retries.max-delay:}"
-
multiplier
- Returns:
- The multiplier to use to calculate the delay
- Default:
- "${kestra.retries.multiplier:2.0}"
-
predicate
Class<? extends io.micronaut.retry.annotation.RetryPredicate> predicate- Returns:
- The retry predicate class to use instead of
Retryable.includes()andRetryable.excludes()(defaults to none)
- Default:
- io.micronaut.retry.annotation.DefaultRetryPredicate.class
-