| Package | Description |
|---|---|
| com.linecorp.armeria.client.retry |
A
Client decorator that handles failures and retries requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
RetryingHttpClientBuilder
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static RetryingClientBuilder |
RetryingClient.builder(RetryStrategy retryStrategy)
Returns a new
RetryingClientBuilder with the specified RetryStrategy. |
static RetryingClientBuilder |
RetryingClient.builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Returns a new
RetryingClientBuilder with the specified RetryStrategyWithContent. |
RetryingClientBuilder |
RetryingClientBuilder.contentPreviewLength(int contentPreviewLength)
Sets the length of content required to determine whether to retry or not.
|
RetryingClientBuilder |
RetryingClientBuilder.maxTotalAttempts(int maxTotalAttempts) |
RetryingClientBuilder |
RetryingClientBuilder.responseTimeoutForEachAttempt(Duration responseTimeoutForEachAttempt) |
RetryingClientBuilder |
RetryingClientBuilder.responseTimeoutMillisForEachAttempt(long responseTimeoutMillisForEachAttempt) |
RetryingClientBuilder |
RetryingClientBuilder.useRetryAfter(boolean useRetryAfter)
Whether retry should be attempted according to the
retryHeader from the server or not. |
Copyright © 2020 LeanCloud. All rights reserved.