RetryingClient.@Deprecated public final class RetryingHttpClient extends RetryingClient
HttpClient decorator that handles failures of an invocation and retries HTTP requests.ARMERIA_RETRY_COUNT| Modifier and Type | Method and Description |
|---|---|
static RetryingHttpClientBuilder |
builder(RetryStrategy retryStrategy)
Deprecated.
|
static RetryingHttpClientBuilder |
builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
newDecorator(RetryStrategy retryStrategy)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Deprecated.
|
doExecuteexecute, getNextDelay, getNextDelay, getTotalAttempts, newDerivedContext, onRetryingComplete, retryStrategy, retryStrategyWithContent, scheduleNextRetry, setResponseTimeoutas, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute@Deprecated public static RetryingHttpClientBuilder builder(RetryStrategy retryStrategy)
RetryingClient.builder(RetryStrategy).RetryingHttpClientBuilder with the specified RetryStrategy.@Deprecated public static RetryingHttpClientBuilder builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
builder(RetryStrategyWithContent).RetryingHttpClientBuilder with the specified RetryStrategyWithContent.@Deprecated public static Function<? super HttpClient,RetryingClient> newDecorator(RetryStrategy retryStrategy)
RetryingClient.newDecorator(RetryStrategy).HttpClient decorator that handles failures of an invocation and retries HTTP
requests.retryStrategy - the retry strategy@Deprecated public static Function<? super HttpClient,RetryingClient> newDecorator(RetryStrategy retryStrategy, int maxTotalAttempts)
RetryingClient.newDecorator(RetryStrategy, int).HttpClient decorator that handles failures of an invocation and retries HTTP
requests.retryStrategy - the retry strategymaxTotalAttempts - the maximum number of total attempts@Deprecated public static Function<? super HttpClient,RetryingClient> newDecorator(RetryStrategy retryStrategy, int maxTotalAttempts, long responseTimeoutMillisForEachAttempt)
RetryingClient.newDecorator(RetryStrategy, int, long).HttpClient decorator that handles failures of an invocation and retries HTTP
requests.retryStrategy - the retry strategymaxTotalAttempts - the maximum number of total attemptsresponseTimeoutMillisForEachAttempt - response timeout for each attempt. 0 disables
the timeoutCopyright © 2020 LeanCloud. All rights reserved.