| 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 | Field and Description |
|---|---|
static ClientOptions |
ClientOptions.DEFAULT
Deprecated.
Use
of(). |
| Modifier and Type | Method and Description |
|---|---|
ClientOptions |
ClientOptionsBuilder.build()
Returns a newly-created
ClientOptions based on the ClientOptionValues of this builder. |
static ClientOptions |
ClientOptions.of()
Returns the
ClientOptions with the default options only. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
ClientOptions options)
Merges the specified two
ClientOptions into one. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
ClientOptionValue<?>... options)
Merges the specified
ClientOptions and ClientOptionValues. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
Iterable<ClientOptionValue<?>> options)
Merges the specified
ClientOptions and ClientOptionValues. |
static ClientOptions |
ClientOptions.of(ClientOptionValue<?>... options)
Returns the
ClientOptions with the specified ClientOptionValues. |
static ClientOptions |
ClientOptions.of(Iterable<ClientOptionValue<?>> options)
Returns the
ClientOptions with the specified ClientOptionValues. |
ClientOptions |
UserClient.options() |
ClientOptions |
DefaultClientRequestContext.options() |
ClientOptions |
DefaultClientBuilderParams.options() |
ClientOptions |
ClientRequestContextWrapper.options() |
ClientOptions |
ClientRequestContext.options()
Returns the
ClientOptions of the current Request. |
ClientOptions |
ClientBuilderParams.options()
Returns the options of the client.
|
| Modifier and Type | Method and Description |
|---|---|
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,
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,
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,
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(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
Endpoint with the Scheme using
the default ClientFactory. |
<T> T |
ClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options)
|
<T> T |
AbstractClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options) |
<T> T |
DecoratingClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
String path,
Class<T> clientType,
ClientOptions options) |
<T> T |
ClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
String path,
Class<T> clientType,
ClientOptions options)
|
static <T> T |
Clients.newClient(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 default ClientFactory. |
static <T> T |
Clients.newClient(String uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
uri using the default
ClientFactory. |
<T> T |
ClientFactory.newClient(String uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
uri. |
<T> T |
AbstractClientFactory.newClient(String uri,
Class<T> clientType,
ClientOptions options) |
<T> T |
DecoratingClientFactory.newClient(URI uri,
Class<T> clientType,
ClientOptions options) |
static <T> T |
Clients.newClient(URI uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
URI using the default
ClientFactory. |
<T> T |
ClientFactory.newClient(URI uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
URI. |
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,
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,
URI uri,
ClientOptions options)
Creates a new web client that connects to the specified
URI using an alternative
ClientFactory. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
ClientOptions options)
Merges the specified two
ClientOptions into one. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
ClientOptionValue<?>... options)
Merges the specified
ClientOptions and ClientOptionValues. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
Iterable<ClientOptionValue<?>> options)
Merges the specified
ClientOptions and ClientOptionValues. |
static WebClient |
WebClient.of(SessionProtocol protocol,
Endpoint endpoint,
ClientOptions options)
Creates a new web client that connects to the specified
Endpoint with
the SessionProtocol using the default ClientFactory. |
static WebClient |
WebClient.of(String uri,
ClientOptions options)
Creates a new web client that connects to the specified
uri using the default
ClientFactory. |
static WebClient |
WebClient.of(URI uri,
ClientOptions options)
Creates a new web client that connects to the specified
URI using the default
ClientFactory. |
ClientRequestContextBuilder |
ClientRequestContextBuilder.options(ClientOptions options)
Sets the
ClientOptions of the client. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Clients.newDerivedClient(T client,
Function<? super ClientOptions,ClientOptions> configurator)
Creates a new derived client that connects to the same
URI with the specified client
but with different ClientOptions. |
static <T> T |
Clients.newDerivedClient(T client,
Function<? super ClientOptions,ClientOptions> configurator)
Creates a new derived client that connects to the same
URI with the specified client
but with different ClientOptions. |
| Constructor and Description |
|---|
ClientOptionsBuilder(ClientOptions options)
Deprecated.
Use
toBuilder(). |
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.
|
DefaultClientRequestContext(io.netty.channel.EventLoop eventLoop,
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 |
|---|---|
HealthCheckedEndpointGroupBuilder |
HealthCheckedEndpointGroupBuilder.clientOptions(ClientOptions options) |
AbstractHealthCheckedEndpointGroupBuilder |
AbstractHealthCheckedEndpointGroupBuilder.clientOptions(ClientOptions clientOptions)
Sets the
ClientOptions of the Client that sends health check requests. |
Copyright © 2020 LeanCloud. All rights reserved.