| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.client.endpoint.healthcheck |
Filters out unhealthy
Endpoints from an existing
EndpointGroup by sending health check requests. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractClientFactory
A skeletal
ClientFactory implementation. |
class |
DecoratingClientFactory
|
| Modifier and Type | Field and Description |
|---|---|
static ClientFactory |
ClientFactory.DEFAULT
Deprecated.
Use
ofDefault(). |
| Modifier and Type | Method and Description |
|---|---|
ClientFactory |
ClientFactoryBuilder.build()
Returns a newly-created
ClientFactory based on the properties of this builder. |
protected ClientFactory |
DecoratingClientFactory.delegate()
Returns the delegate
ClientFactory. |
ClientFactory |
UserClient.factory() |
ClientFactory |
DefaultClientBuilderParams.factory() |
ClientFactory |
ClientBuilderParams.factory()
Returns the
ClientFactory who created the client. |
ClientFactory |
ClientFactoryProvider.newFactory(ClientFactory httpClientFactory)
Creates a new
ClientFactory. |
static ClientFactory |
ClientFactory.ofDefault()
Returns the default
ClientFactory implementation. |
| Modifier and Type | Method and Description |
|---|---|
WebClientBuilder |
WebClientBuilder.factory(ClientFactory factory)
Sets the
ClientFactory of the client. |
ClientBuilder |
ClientBuilder.factory(ClientFactory factory)
Sets the
ClientFactory of the client. |
static <T> T |
Clients.newClient(ClientFactory factory,
Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
Endpoint with the Scheme using
the specified ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
Endpoint with the Scheme using
the specified ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
SessionProtocol protocol,
SerializationFormat format,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
Endpoint with the SessionProtocol and
the SerializationFormat using the specified ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
SessionProtocol protocol,
SerializationFormat format,
Endpoint endpoint,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
Endpoint with the SessionProtocol and
the SerializationFormat using the specified ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
String uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
uri using the specified
ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
String uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
uri using the specified
ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
URI uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
URI using the specified
ClientFactory. |
static <T> T |
Clients.newClient(ClientFactory factory,
URI uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
URI using the specified
ClientFactory. |
ClientFactory |
ClientFactoryProvider.newFactory(ClientFactory httpClientFactory)
Creates a new
ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
SessionProtocol protocol,
Endpoint endpoint,
ClientOptions options)
Creates a new web client that connects to the specified
Endpoint with
the SessionProtocol using an alternative ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
SessionProtocol protocol,
Endpoint endpoint,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
Endpoint with
the SessionProtocol using an alternative ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
String uri,
ClientOptions options)
Creates a new web client that connects to the specified
uri using an alternative
ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
String uri,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
uri using an alternative
ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
URI uri,
ClientOptions options)
Creates a new web client that connects to the specified
URI using an alternative
ClientFactory. |
static WebClient |
WebClient.of(ClientFactory factory,
URI uri,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
URI using an alternative
ClientFactory. |
| Constructor and Description |
|---|
DecoratingClientFactory(ClientFactory delegate)
Creates a new instance.
|
DefaultClientBuilderParams(ClientFactory factory,
URI uri,
Class<?> type,
ClientOptions options)
Creates a new instance.
|
DefaultClientRequestContext(ClientFactory factory,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ClientFactory |
HealthCheckerContext.clientFactory()
Returns the
ClientFactory which is used for sending health check requests. |
| Modifier and Type | Method and Description |
|---|---|
HealthCheckedEndpointGroupBuilder |
HealthCheckedEndpointGroupBuilder.clientFactory(ClientFactory clientFactory) |
AbstractHealthCheckedEndpointGroupBuilder |
AbstractHealthCheckedEndpointGroupBuilder.clientFactory(ClientFactory clientFactory)
Sets the
ClientFactory to use when making health check requests. |
Copyright © 2020 LeanCloud. All rights reserved.