| Package | Description |
|---|---|
| com.linecorp.armeria.client.retry |
A
Client decorator that handles failures and retries requests. |
| Modifier and Type | Method and Description |
|---|---|
protected RetryStrategyWithContent<O> |
AbstractRetryingClient.retryStrategyWithContent()
Returns the
RetryStrategyWithContent. |
| Modifier and Type | Method and Description |
|---|---|
static RetryingHttpClientBuilder |
RetryingHttpClient.builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Deprecated.
|
static RetryingClientBuilder |
RetryingClient.builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Returns a new
RetryingClientBuilder with the specified RetryStrategyWithContent. |
static RetryingRpcClientBuilder |
RetryingRpcClient.builder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Returns a new
RetryingRpcClientBuilder with the specified RetryStrategyWithContent. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent,
int maxTotalAttempts)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
static Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClient.newDecorator(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new
RpcClient decorator that handles failures of an invocation and retries
RPC requests. |
| Constructor and Description |
|---|
AbstractRetryingClient(Client<I,O> delegate,
RetryStrategyWithContent<O> retryStrategyWithContent,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new instance that decorates the specified
Client. |
AbstractRetryingClientBuilder(RetryStrategyWithContent<O> retryStrategyWithContent)
Creates a new builder with the specified
RetryStrategyWithContent. |
RetryingHttpClientBuilder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Deprecated.
|
RetryingRpcClientBuilder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Deprecated.
|
Copyright © 2020 LeanCloud. All rights reserved.