public static class AsyncRetryStrategies.ExponentialBackoffDelayRetryStrategy<OUT> extends Object implements AsyncRetryStrategy<OUT>
| 构造器和说明 |
|---|
ExponentialBackoffDelayRetryStrategy(int maxAttempts,
long initialDelay,
long maxRetryDelay,
double multiplier,
java.util.function.Predicate<Collection<OUT>> resultPredicate,
java.util.function.Predicate<Throwable> exceptionPredicate) |
public ExponentialBackoffDelayRetryStrategy(int maxAttempts,
long initialDelay,
long maxRetryDelay,
double multiplier,
java.util.function.Predicate<Collection<OUT>> resultPredicate,
java.util.function.Predicate<Throwable> exceptionPredicate)
public boolean canRetry(int currentAttempts)
canRetry 在接口中 AsyncRetryStrategy<OUT>public long getBackoffTimeMillis(int currentAttempts)
getBackoffTimeMillis 在接口中 AsyncRetryStrategy<OUT>public AsyncRetryPredicate<OUT> getRetryPredicate()
getRetryPredicate 在接口中 AsyncRetryStrategy<OUT>AsyncRetryPredicateCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.