Package io.servicetalk.http.netty
Interface RetryingHttpRequesterFilter.DelayedRetry
- All Superinterfaces:
DelayedRetryException
- Enclosing class:
- RetryingHttpRequesterFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated
@FunctionalInterface
public static interface RetryingHttpRequesterFilter.DelayedRetry
extends DelayedRetryException
Deprecated.
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()Deprecated.A constant delay to apply.The total delay for the retry logic will be the sum of this value and the result of the
back-off policyin-use. Consider using 'full-jitter' flavours from theRetryingHttpRequesterFilter.BackOffPolicyto avoid having another constant delay applied per-retry.- Specified by:
delayin interfaceDelayedRetryException- Returns:
- The
Durationto apply as constant delay when retrying.
-
throwable
Deprecated.Description copied from interface:DelayedRetryExceptionReturns originalThrowablethisDelayedRetryExceptionrepresents.- Specified by:
throwablein interfaceDelayedRetryException- Returns:
- the original
Throwable
-
DelayedRetryExceptioninstead.