Annotation Interface Retryable


AOP Advice that can be applied to any method.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Element Details

    • value

      Class<? extends Throwable>[] value
      Returns:
      The exception types to include (defaults to all)
      Default:
      {}
    • includes

      @AliasFor(member="value") Class<? extends Throwable>[] includes
      Returns:
      The exception types to include (defaults to all)
      Default:
      {}
    • excludes

      Class<? extends Throwable>[] excludes
      Returns:
      The exception types to exclude (defaults to none)
      Default:
      {}
    • attempts

      Returns:
      The maximum number of retry attempts
      Default:
      "3"
    • delay

      String delay
      Returns:
      The delay between retry attempts
      Default:
      "1s"
    • maxDelay

      String maxDelay
      Returns:
      The maximum overall delay
      Default:
      ""
    • multiplier

      Returns:
      The multiplier to use to calculate the delay
      Default:
      "1.0"
    • predicate

      Class<? extends RetryPredicate> predicate
      Returns:
      The retry predicate class to use instead of includes() and excludes() (defaults to none)
      Default:
      io.micronaut.retry.annotation.DefaultRetryPredicate.class
    • capturedException

      Class<? extends Throwable> capturedException
      Returns:
      The capture exception types (defaults to RuntimeException)
      Default:
      java.lang.RuntimeException.class