| 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. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleDecoratingHttpClient
Decorates an
HttpClient. |
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
ClientDecoration.decorate(HttpClient client)
Decorates the specified
HttpClient using the decorator. |
protected HttpClient |
DecoratingClientFactory.newHttpClient(ClientBuilderParams params)
Creates a new
HttpClient which uses the same SessionProtocol, EndpointGroup and
ClientOptions with the specified ClientBuilderParams. |
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
ClientDecoration.decorate(HttpClient client)
Decorates the specified
HttpClient using the decorator. |
HttpResponse |
DecoratingHttpClientFunction.execute(HttpClient delegate,
ClientRequestContext ctx,
HttpRequest req)
|
| Modifier and Type | Method and Description |
|---|---|
ClientDecorationBuilder |
ClientDecorationBuilder.add(Function<? super HttpClient,? extends HttpClient> decorator)
Adds the specified HTTP-level
decorator. |
ClientDecorationBuilder |
ClientDecorationBuilder.add(Function<? super HttpClient,? extends HttpClient> decorator)
Adds the specified HTTP-level
decorator. |
WebClientBuilder |
WebClientBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
WebClientBuilder |
WebClientBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
ClientOptionsBuilder |
ClientOptionsBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
ClientOptionsBuilder |
ClientOptionsBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
ClientBuilder |
ClientBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
ClientBuilder |
ClientBuilder.decorator(Function<? super HttpClient,? extends HttpClient> decorator) |
static ClientDecoration |
ClientDecoration.of(Function<? super HttpClient,? extends HttpClient> decorator)
Creates a new instance from a single decorator
Function. |
static ClientDecoration |
ClientDecoration.of(Function<? super HttpClient,? extends HttpClient> decorator)
Creates a new instance from a single decorator
Function. |
| Constructor and Description |
|---|
SimpleDecoratingHttpClient(HttpClient delegate)
Creates a new instance that decorates the specified
HttpClient. |
| Modifier and Type | Class and Description |
|---|---|
class |
CircuitBreakerClient
An
HttpClient decorator that handles failures of HTTP requests based on circuit breaker pattern. |
class |
CircuitBreakerHttpClient
Deprecated.
Use
CircuitBreakerClient. |
| Modifier and Type | Method and Description |
|---|---|
CircuitBreakerClient |
CircuitBreakerClientBuilder.build(HttpClient delegate)
Returns a newly-created
CircuitBreakerClient based on the properties of this builder. |
| 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 | Method and Description |
|---|---|
static Function<? super HttpClient,DecodingClient> |
HttpDecodingClient.newDecorator()
Deprecated.
|
static Function<? super HttpClient,DecodingClient> |
DecodingClient.newDecorator()
Creates a new
DecodingClient decorator with the default encodings of 'gzip' and 'deflate'. |
static Function<? super HttpClient,DecodingClient> |
HttpDecodingClient.newDecorator(Iterable<? extends StreamDecoderFactory> decoderFactories)
Deprecated.
|
static Function<? super HttpClient,DecodingClient> |
DecodingClient.newDecorator(Iterable<? extends StreamDecoderFactory> decoderFactories)
Creates a new
DecodingClient decorator with the specified StreamDecoderFactorys. |
static Function<? super HttpClient,DecodingClient> |
HttpDecodingClient.newDecorator(StreamDecoderFactory... decoderFactories)
Deprecated.
|
static Function<? super HttpClient,DecodingClient> |
DecodingClient.newDecorator(StreamDecoderFactory... decoderFactories)
Creates a new
DecodingClient decorator with the specified StreamDecoderFactorys. |
| Modifier and Type | Class and Description |
|---|---|
class |
ConcurrencyLimitingClient
An
HttpClient decorator that limits the concurrent number of active HTTP requests. |
class |
ConcurrencyLimitingHttpClient
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpClient,ConcurrencyLimitingClient> |
ConcurrencyLimitingHttpClient.newDecorator(int maxConcurrency)
Deprecated.
|
static Function<? super HttpClient,ConcurrencyLimitingClient> |
ConcurrencyLimitingClient.newDecorator(int maxConcurrency)
Creates a new
HttpClient decorator that limits the concurrent number of active HTTP requests. |
static Function<? super HttpClient,ConcurrencyLimitingClient> |
ConcurrencyLimitingHttpClient.newDecorator(int maxConcurrency,
long timeout,
TimeUnit unit)
Deprecated.
|
static Function<? super HttpClient,ConcurrencyLimitingClient> |
ConcurrencyLimitingClient.newDecorator(int maxConcurrency,
long timeout,
TimeUnit unit)
Creates a new
HttpClient decorator that limits the concurrent number of active HTTP requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
ContentPreviewingClient
|
class |
LoggingClient
|
| Modifier and Type | Method and Description |
|---|---|
Function<? super HttpClient,LoggingClient> |
LoggingClientBuilder.newDecorator()
Returns a newly-created
LoggingClient decorator based on the properties of this builder. |
static Function<? super HttpClient,LoggingClient> |
LoggingClient.newDecorator()
Returns a new
HttpClient decorator that logs Requests and Responses at
LogLevel.INFO for success, LogLevel.WARN for failure. |
static Function<? super HttpClient,ContentPreviewingClient> |
ContentPreviewingClient.newDecorator(ContentPreviewerFactory contentPreviewerFactory)
Creates a new
ContentPreviewingClient decorator with the specified
ContentPreviewerFactory. |
static Function<? super HttpClient,ContentPreviewingClient> |
ContentPreviewingClient.newDecorator(int maxLength)
Creates a new
ContentPreviewingClient decorator which produces text preview with the
specified maxLength limit. |
static Function<? super HttpClient,ContentPreviewingClient> |
ContentPreviewingClient.newDecorator(int maxLength,
Charset defaultCharset)
Creates a new
ContentPreviewingClient decorator which produces text preview with the
specified maxLength limit. |
static Function<? super HttpClient,LoggingClient> |
LoggingClient.newDecorator(LogLevel level)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
LoggingClient |
LoggingClientBuilder.build(HttpClient delegate)
Returns a newly-created
LoggingClient decorating delegate based on the properties of
this builder. |
| Constructor and Description |
|---|
LoggingClient(HttpClient delegate)
Deprecated.
|
LoggingClient(HttpClient delegate,
LogLevel level)
Deprecated.
Use
LoggingClientBuilder. |
| Modifier and Type | Class and Description |
|---|---|
class |
MetricCollectingClient
Decorates an
HttpClient to collect metrics into MeterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpClient,MetricCollectingClient> |
MetricCollectingClient.newDecorator(MeterIdPrefixFunction meterIdPrefixFunction)
Returns an
HttpClient decorator that tracks request stats using MeterRegistry. |
| Modifier and Type | Class and Description |
|---|---|
class |
RetryingClient
An
HttpClient decorator that handles failures of an invocation and retries HTTP requests. |
class |
RetryingHttpClient
Deprecated.
Use
RetryingClient. |
| Modifier and Type | Method and Description |
|---|---|
Function<? super HttpClient,RetryingClient> |
RetryingClientBuilder.newDecorator()
Returns a newly-created decorator that decorates an
HttpClient with a new
RetryingClient based on the properties of this builder. |
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. |
| Modifier and Type | Method and Description |
|---|---|
RetryingClient |
RetryingClientBuilder.build(HttpClient delegate)
Returns a newly-created
RetryingClient based on the properties of this builder. |
Copyright © 2020 LeanCloud. All rights reserved.