public static class AsyncRetryStrategies.FixedDelayRetryStrategyBuilder<OUT> extends Object
Constructor and Description |
---|
FixedDelayRetryStrategyBuilder(int maxAttempts,
long backoffTimeMillis) |
Modifier and Type | Method and Description |
---|---|
AsyncRetryStrategies.FixedDelayRetryStrategy<OUT> |
build() |
AsyncRetryStrategies.FixedDelayRetryStrategyBuilder<OUT> |
ifException(java.util.function.Predicate<Throwable> exceptionRetryPredicate) |
AsyncRetryStrategies.FixedDelayRetryStrategyBuilder<OUT> |
ifResult(java.util.function.Predicate<Collection<OUT>> resultRetryPredicate) |
public FixedDelayRetryStrategyBuilder(int maxAttempts, long backoffTimeMillis)
public AsyncRetryStrategies.FixedDelayRetryStrategyBuilder<OUT> ifResult(@Nonnull java.util.function.Predicate<Collection<OUT>> resultRetryPredicate)
public AsyncRetryStrategies.FixedDelayRetryStrategyBuilder<OUT> ifException(@Nonnull java.util.function.Predicate<Throwable> exceptionRetryPredicate)
public AsyncRetryStrategies.FixedDelayRetryStrategy<OUT> build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.