Annotation Interface RetryExponentialBackoff


@Inherited @Documented @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface RetryExponentialBackoff
A retry policy that increases the delay time following an exponential sequence. Allowed elements that are also annotated with @Retry. Expected sequence if factor is 2: initial delay, 2 * initial delay + jitter, 4 * initial delay + jitter, 8 * initial delay + jitter, etc. maxDelay is used to prevent endless waiting.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Multiplication factor.
    long
    Initial Delay.
  • Element Details

    • initialDelay

      long initialDelay
      Initial Delay. Default is 0.
      Returns:
      Milliseconds long
      Default:
      2L
    • factor

      int factor
      Multiplication factor. Default is 2.
      Returns:
      multiplication factor int
      Default:
      2