Interface RetryingHttpRequesterFilter.DelayedRetry

Enclosing class:
RetryingHttpRequesterFilter

public static interface RetryingHttpRequesterFilter.DelayedRetry
An interface that enhances any Exception to provide a constant delay to be applied when retrying through a retrying-filter.

Constant delay returned from delay() will be additive to the backoff policy defined for a certain retry-able failure.

  • Method Summary

    Modifier and Type
    Method
    Description
    A constant delay to apply in milliseconds.
  • Method Details

    • delay

      Duration delay()
      A constant delay to apply in milliseconds. The total delay for the retry logic will be the sum of this value and the result of the back-off policy in-use. Consider using 'full-jitter' flavours from the RetryingHttpRequesterFilter.BackOffPolicy to avoid having another constant delay applied per-retry.
      Returns:
      The Duration to apply as constant delay when retrying.