Package io.servicetalk.http.netty
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
-
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 theback-off policy
in-use. Consider using 'full-jitter' flavours from theRetryingHttpRequesterFilter.BackOffPolicy
to avoid having another constant delay applied per-retry.- Returns:
- The
Duration
to apply as constant delay when retrying.
-