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 policy
in-use. Consider using 'full-jitter' flavours from theRetryingHttpRequesterFilter.BackOffPolicy
to avoid having another constant delay applied per-retry.- Specified by:
delay
in interfaceDelayedRetryException
- Returns:
- The
Duration
to apply as constant delay when retrying.
-
throwable
Deprecated.Description copied from interface:DelayedRetryException
Returns originalThrowable
thisDelayedRetryException
represents.- Specified by:
throwable
in interfaceDelayedRetryException
- Returns:
- the original
Throwable
-
DelayedRetryException
instead.