| Modifier and Type | Method and Description |
|---|---|
static RetryPolicy |
RetryPolicy.noRetry() |
static RetryPolicy |
RetryPolicy.retryNTimes(int times) |
static RetryPolicy |
RetryPolicy.retryNTimes(int times,
long delayInMs) |
static RetryPolicy |
RetryPolicy.retryNTimes(int times,
long delayInMs,
boolean hedge) |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
ScopeAsyncRetry.callWithRetry(long singleCallTimeoutMs,
RetryPolicy retryPolicy,
com.github.phantomthief.util.ThrowableSupplier<com.google.common.util.concurrent.ListenableFuture<T>,X> func)
带重试的调用
|
<T,X extends Throwable> |
ScopeAsyncRetry.callWithRetry(long singleCallTimeoutMs,
RetryPolicy retryPolicy,
com.github.phantomthief.util.ThrowableSupplier<com.google.common.util.concurrent.ListenableFuture<T>,X> func,
com.google.common.util.concurrent.FutureCallback<T> eachRetryCallback) |
Copyright © 2019. All rights reserved.