Package ai.vespa.util.http.hc4.retry
Class DelayedConnectionLevelRetryHandler.Builder
java.lang.Object
ai.vespa.util.http.hc4.retry.DelayedConnectionLevelRetryHandler.Builder
- Enclosing class:
- DelayedConnectionLevelRetryHandler
-
Method Summary
Modifier and TypeMethodDescriptionbuild()onRetry(RetryConsumer<IOException> consumer) onRetryFailed(RetryFailedConsumer<IOException> consumer) retryFor(RetryPredicate<IOException> predicate) retryForExceptions(Predicate<IOException> predicate) retryForExceptions(List<Class<? extends IOException>> exceptionTypes) withExponentialBackoff(Duration startDelay, Duration maxDelay, int maxRetries) withFixedDelay(Duration delay, int maxRetries)
-
Method Details
-
withFixedDelay
public static DelayedConnectionLevelRetryHandler.Builder withFixedDelay(Duration delay, int maxRetries) -
withExponentialBackoff
public static DelayedConnectionLevelRetryHandler.Builder withExponentialBackoff(Duration startDelay, Duration maxDelay, int maxRetries) -
retryForExceptions
public DelayedConnectionLevelRetryHandler.Builder retryForExceptions(List<Class<? extends IOException>> exceptionTypes) -
retryForExceptions
public DelayedConnectionLevelRetryHandler.Builder retryForExceptions(Predicate<IOException> predicate) -
retryFor
-
onRetry
-
onRetryFailed
public DelayedConnectionLevelRetryHandler.Builder onRetryFailed(RetryFailedConsumer<IOException> consumer) -
build
-