| 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.encoding |
HTTP content decoding client.
|
| com.linecorp.armeria.client.limit |
Limits the number of executed
Requests. |
| 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. |
| com.linecorp.armeria.internal |
Various classes used internally.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpClient
Sends an
HttpRequest to a remote Endpoint. |
interface |
RpcClient
Sends an
RpcRequest to a remote Endpoint. |
| Modifier and Type | Class and Description |
|---|---|
class |
DecoratingClient<T_I extends Request,T_O extends Response,R_I extends Request,R_O extends Response>
Decorates a
Client. |
class |
SimpleDecoratingClient<I extends Request,O extends Response>
Decorates a
Client. |
class |
SimpleDecoratingHttpClient
Decorates an
HttpClient. |
class |
SimpleDecoratingRpcClient
Decorates an
RpcClient. |
| Constructor and Description |
|---|
DecoratingClient(Client<T_I,T_O> delegate)
Creates a new instance that decorates the specified
Client. |
SimpleDecoratingClient(Client<I,O> delegate)
Creates a new instance that decorates the specified
Client. |
UserClient(ClientBuilderParams params,
Client<I,O> delegate,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
Endpoint endpoint)
Creates a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CircuitBreakerClient<I extends Request,O extends Response>
A
Client decorator that handles failures of remote invocation based on circuit breaker pattern. |
class |
CircuitBreakerHttpClient
An
HttpClient decorator that handles failures of HTTP requests based on circuit breaker pattern. |
class |
CircuitBreakerRpcClient
An
RpcClient decorator that handles failures of RPC remote invocation based on
circuit breaker pattern. |
| Constructor and Description |
|---|
CircuitBreakerClient(Client<I,O> delegate,
CircuitBreakerMapping mapping,
CircuitBreakerStrategy strategy)
Creates a new instance that decorates the specified
Client. |
CircuitBreakerClient(Client<I,O> delegate,
CircuitBreakerMapping mapping,
CircuitBreakerStrategyWithContent<O> strategyWithContent)
Creates a new instance that decorates the specified
Client. |
| Modifier and Type | Class and Description |
|---|---|
class |
HttpDecodingClient
A
DecoratingClient that requests and decodes HTTP encoding (e.g., gzip) that has been applied to the
content of an HttpResponse. |
| Modifier and Type | Class and Description |
|---|---|
class |
ConcurrencyLimitingClient<I extends Request,O extends Response>
An abstract
Client decorator that limits the concurrent number of active requests. |
class |
ConcurrencyLimitingHttpClient
An
HttpClient decorator that limits the concurrent number of active HTTP requests. |
| Constructor and Description |
|---|
ConcurrencyLimitingClient(Client<I,O> delegate,
int maxConcurrency)
Creates a new instance that decorates the specified
delegate to limit the concurrent number of
active requests to maxConcurrency, with the default timeout of
milliseconds. |
ConcurrencyLimitingClient(Client<I,O> delegate,
int maxConcurrency,
long timeout,
TimeUnit unit)
Creates a new instance that decorates the specified
delegate to limit the concurrent number of
active requests to maxConcurrency. |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingClient
|
class |
LoggingRpcClient
|
| Modifier and Type | Class and Description |
|---|---|
class |
MetricCollectingClient
Decorates an
HttpClient to collect metrics into MeterRegistry. |
class |
MetricCollectingRpcClient
Decorates an
RpcClient to collect metrics into MeterRegistry. |
| Modifier and Type | Class and Description |
|---|---|
class |
RetryingClient<I extends Request,O extends Response>
A
Client decorator that handles failures of remote invocation and retries requests. |
class |
RetryingHttpClient
An
HttpClient decorator that handles failures of an invocation and retries HTTP requests. |
class |
RetryingRpcClient
An
RpcClient decorator that handles failures of an invocation and retries RPC requests. |
| Constructor and Description |
|---|
RetryingClient(Client<I,O> delegate,
RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new instance that decorates the specified
Client. |
RetryingClient(Client<I,O> delegate,
RetryStrategyWithContent<O> retryStrategyWithContent,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new instance that decorates the specified
Client. |
| Modifier and Type | Method and Description |
|---|---|
static <I extends Request,O extends Response,U extends Client<I,O>> |
ClientUtil.executeWithFallback(U delegate,
ClientRequestContext ctx,
BiFunction<ClientRequestContext,Throwable,O> fallback) |
static <I extends Request,O extends Response,U extends Client<I,O>> |
ClientUtil.initContextAndExecuteWithFallback(U delegate,
DefaultClientRequestContext ctx,
Endpoint endpoint,
BiFunction<ClientRequestContext,Throwable,O> fallback) |
Copyright © 2020 LeanCloud. All rights reserved.