| Package | Description |
|---|---|
| com.linecorp.armeria.client.retry |
A
Client decorator that handles failures and retries requests. |
| Modifier and Type | Method and Description |
|---|---|
static RetryStrategy |
RetryStrategy.never()
A
RetryStrategy that defines a retry should not be performed. |
static RetryStrategy |
RetryStrategy.onServerErrorStatus()
Returns the
RetryStrategy that retries the request with the Backoff.ofDefault()
when the response status matches HttpStatusClass.SERVER_ERROR or an Exception is raised. |
static RetryStrategy |
RetryStrategy.onServerErrorStatus(Backoff backoff)
Returns the
RetryStrategy that retries the request with the specified backoff
when the response status matches HttpStatusClass.SERVER_ERROR or an Exception is raised. |
static RetryStrategy |
RetryStrategy.onStatus(BiFunction<HttpStatus,Throwable,Backoff> backoffFunction)
Returns the
RetryStrategy that decides to retry the request using the specified
backoffFunction. |
static RetryStrategy |
RetryStrategy.onUnprocessed()
|
static RetryStrategy |
RetryStrategy.onUnprocessed(Backoff backoff)
|
protected RetryStrategy |
AbstractRetryingClient.retryStrategy()
Returns the
RetryStrategy. |
| Modifier and Type | Method and Description |
|---|---|
static RetryingHttpClientBuilder |
RetryingHttpClient.builder(RetryStrategy retryStrategy)
Deprecated.
|
static RetryingClientBuilder |
RetryingClient.builder(RetryStrategy retryStrategy)
Returns a new
RetryingClientBuilder with the specified RetryStrategy. |
static Function<? super HttpClient,RetryingClient> |
RetryingHttpClient.newDecorator(RetryStrategy retryStrategy)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
RetryingClient.newDecorator(RetryStrategy retryStrategy)
Creates a new
HttpClient decorator that handles failures of an invocation and retries HTTP
requests. |
static Function<? super HttpClient,RetryingClient> |
RetryingHttpClient.newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
RetryingClient.newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts)
Creates a new
HttpClient decorator that handles failures of an invocation and retries HTTP
requests. |
static Function<? super HttpClient,RetryingClient> |
RetryingHttpClient.newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Deprecated.
|
static Function<? super HttpClient,RetryingClient> |
RetryingClient.newDecorator(RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new
HttpClient decorator that handles failures of an invocation and retries HTTP
requests. |
| Constructor and Description |
|---|
AbstractRetryingClient(Client<I,O> delegate,
RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new instance that decorates the specified
Client. |
AbstractRetryingClientBuilder(RetryStrategy retryStrategy)
Creates a new builder with the specified
RetryStrategy. |
RetryingHttpClientBuilder(RetryStrategy retryStrategy)
Deprecated.
|
Copyright © 2020 LeanCloud. All rights reserved.