| 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.client |
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)
Creates a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCircuitBreakerClient<I extends Request,O extends Response>
A
Client decorator that handles failures of remote invocation based on circuit breaker pattern. |
class |
CircuitBreakerClient
An
HttpClient decorator that handles failures of HTTP requests based on circuit breaker pattern. |
class |
CircuitBreakerHttpClient
Deprecated.
Use
CircuitBreakerClient. |
class |
CircuitBreakerRpcClient
An
RpcClient decorator that handles failures of RPC remote invocation based on
circuit breaker pattern. |
| Constructor and Description |
|---|
AbstractCircuitBreakerClient(Client<I,O> delegate,
CircuitBreakerMapping mapping,
CircuitBreakerStrategy strategy)
Creates a new instance that decorates the specified
Client. |
AbstractCircuitBreakerClient(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 |
DecodingClient
A
DecoratingClient that requests and decodes HTTP encoding (e.g., gzip) that has been applied to the
content of an HttpResponse. |
class |
HttpDecodingClient
Deprecated.
Use
DecodingClient. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConcurrencyLimitingClient<I extends Request,O extends Response>
An abstract
Client decorator that limits the concurrent number of active requests. |
class |
ConcurrencyLimitingClient
An
HttpClient decorator that limits the concurrent number of active HTTP requests. |
class |
ConcurrencyLimitingHttpClient
Deprecated.
|
| Constructor and Description |
|---|
AbstractConcurrencyLimitingClient(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. |
AbstractConcurrencyLimitingClient(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 |
ContentPreviewingClient
|
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 |
AbstractRetryingClient<I extends Request,O extends Response>
A
Client decorator that handles failures of remote invocation and retries requests. |
class |
RetryingClient
An
HttpClient decorator that handles failures of an invocation and retries HTTP requests. |
class |
RetryingHttpClient
Deprecated.
Use
RetryingClient. |
class |
RetryingRpcClient
An
RpcClient decorator that handles failures of an invocation and retries RPC requests. |
| Constructor and Description |
|---|
AbstractRetryingClient(Client<I,O> delegate,
RetryStrategy retryStrategy,
int maxTotalAttempts,
long responseTimeoutMillisForEachAttempt)
Creates a new instance that decorates the specified
Client. |
AbstractRetryingClient(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,
EndpointGroup endpointGroup,
BiFunction<ClientRequestContext,Throwable,O> fallback) |
Copyright © 2020 LeanCloud. All rights reserved.