| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.client.circuitbreaker |
Failure detection and fallback mechanism based on
circuit breaker pattern.
|
| com.linecorp.armeria.client.logging |
Logging client decorators.
|
| com.linecorp.armeria.client.metric |
Metric-collecting client decorators.
|
| com.linecorp.armeria.client.retry |
A
Client decorator that handles failures and retries requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleDecoratingRpcClient
Decorates an
RpcClient. |
| Modifier and Type | Method and Description |
|---|---|
RpcClient |
ClientDecoration.rpcDecorate(RpcClient client)
Decorates the specified
RpcClient using the decorator. |
| Modifier and Type | Method and Description |
|---|---|
RpcResponse |
DecoratingRpcClientFunction.execute(RpcClient delegate,
ClientRequestContext ctx,
RpcRequest req)
|
RpcClient |
ClientDecoration.rpcDecorate(RpcClient client)
Decorates the specified
RpcClient using the decorator. |
| Modifier and Type | Method and Description |
|---|---|
ClientDecorationBuilder |
ClientDecorationBuilder.addRpc(Function<? super RpcClient,? extends RpcClient> decorator)
Adds the specified RPC-level
decorator. |
ClientDecorationBuilder |
ClientDecorationBuilder.addRpc(Function<? super RpcClient,? extends RpcClient> decorator)
Adds the specified RPC-level
decorator. |
static ClientDecoration |
ClientDecoration.ofRpc(Function<? super RpcClient,? extends RpcClient> decorator)
Creates a new instance from a single decorator
Function. |
static ClientDecoration |
ClientDecoration.ofRpc(Function<? super RpcClient,? extends RpcClient> decorator)
Creates a new instance from a single decorator
Function. |
WebClientBuilder |
WebClientBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
WebClientBuilder |
WebClientBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
ClientOptionsBuilder |
ClientOptionsBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
ClientOptionsBuilder |
ClientOptionsBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
ClientBuilder |
ClientBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
ClientBuilder |
ClientBuilder.rpcDecorator(Function<? super RpcClient,? extends RpcClient> decorator) |
| Constructor and Description |
|---|
SimpleDecoratingRpcClient(RpcClient delegate)
Creates a new instance that decorates the specified
RpcClient. |
| Modifier and Type | Class and Description |
|---|---|
class |
CircuitBreakerRpcClient
An
RpcClient decorator that handles failures of RPC remote invocation based on
circuit breaker pattern. |
| Modifier and Type | Method and Description |
|---|---|
CircuitBreakerRpcClient |
CircuitBreakerRpcClientBuilder.build(RpcClient delegate)
Returns a newly-created
CircuitBreakerRpcClient based on the properties of this builder. |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingRpcClient
|
| Modifier and Type | Method and Description |
|---|---|
Function<? super RpcClient,LoggingRpcClient> |
LoggingRpcClientBuilder.newDecorator()
Returns a newly-created
LoggingRpcClient decorator based on the properties of this builder. |
static Function<? super RpcClient,LoggingRpcClient> |
LoggingRpcClient.newDecorator()
Returns a new
RpcClient decorator that logs Requests and Responses at
LogLevel.INFO for success, LogLevel.WARN for failure. |
| Modifier and Type | Method and Description |
|---|---|
LoggingRpcClient |
LoggingRpcClientBuilder.build(RpcClient delegate)
Returns a newly-created
LoggingRpcClient decorating delegate based on the properties of
this builder. |
| Modifier and Type | Class and Description |
|---|---|
class |
MetricCollectingRpcClient
Decorates an
RpcClient to collect metrics into MeterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
static Function<? super RpcClient,MetricCollectingRpcClient> |
MetricCollectingRpcClient.newDecorator(MeterIdPrefixFunction meterIdPrefixFunction)
Returns an
RpcClient decorator that tracks request stats using MeterRegistry. |
| Modifier and Type | Class and Description |
|---|---|
class |
RetryingRpcClient
An
RpcClient decorator that handles failures of an invocation and retries RPC requests. |
| Modifier and Type | Method and Description |
|---|---|
Function<? super RpcClient,RetryingRpcClient> |
RetryingRpcClientBuilder.newDecorator()
Returns a newly-created decorator that decorates an
RpcClient with a new
RetryingRpcClient based on the properties of this builder. |
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. |
| Modifier and Type | Method and Description |
|---|---|
RetryingRpcClient |
RetryingRpcClientBuilder.build(RpcClient delegate)
Returns a newly-created
RetryingRpcClient based on the properties of this builder. |
Copyright © 2020 LeanCloud. All rights reserved.