Annotation Interface Ft.Retry

Enclosing class:
Ft

@Retention(CLASS) @Documented @Intercepted public static @interface Ft.Retry
The annotated method (or all methods on annotated type) will be retried according to the configuration.
  • Element Details

    • name

      String name
      If named, an attempt will be made to find a named Retry instance in service registry. If not found, a new retry will be created based on values on this annotation.
      Returns:
      name of this retry
      Default:
      ""
    • calls

      int calls
      Number of calls (first try + retries).
      Returns:
      number of desired calls, must be 1 (means no retries) or higher.
      Default:
      3
    • delay

      String delay
      Duration to delay Defaults to 200 milliseconds.
      Returns:
      duration to delay, such as PT1S (1 second)
      See Also:
      Default:
      "PT0.2S"
    • delayFactor

      double delayFactor
      Delay retry policy factor. If unspecified (value of -1), Jitter retry policy would be used, unless jitter time is also unspecified.

      Default when Retry.DelayingRetryPolicy is used is 2.

      Returns:
      delay factor for delaying retry policy
      Default:
      -1.0
    • jitter

      String jitter
      Jitter for Retry.JitterRetryPolicy. If unspecified (value of -1), delaying retry policy is used. If both this value, and delayFactor() are specified, delaying retry policy would be used.
      Returns:
      jitter duration
      See Also:
      Default:
      "PT-1S"
    • overallTimeout

      String overallTimeout
      Duration of overall timeout. Defaults to PT1S (1 second).
      Returns:
      duration of overall timeout
      Default:
      "PT1S"
    • applyOn

      Class<? extends Throwable>[] applyOn
      These throwables will be considered retriable.
      Returns:
      throwable classes to trigger retries
      See Also:
      Default:
      {}
    • skipOn

      Class<? extends Throwable>[] skipOn
      These throwables will not be considered retriable, all other will.
      Returns:
      throwable classes to skip retries
      See Also:
      Default:
      {}