| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| Modifier and Type | Method and Description |
|---|---|
ClientOptionValue<T> |
ClientOption.newValue(T value)
Creates a new value of this option.
|
| Modifier and Type | Method and Description |
|---|---|
Map<ClientOption<Object>,ClientOptionValue<Object>> |
ClientOptions.asMap()
Converts this
ClientOptions to a Map. |
| Modifier and Type | Method and Description |
|---|---|
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,
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,
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,
ClientOptionValue<?>... 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,
ClientOptionValue<?>... 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,
ClientOptionValue<?>... options)
|
<T> T |
AbstractClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptionValue<?>... options) |
<T> T |
ClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
String path,
Class<T> clientType,
ClientOptionValue<?>... options)
|
<T> T |
AbstractClientFactory.newClient(Scheme scheme,
Endpoint endpoint,
String path,
Class<T> clientType,
ClientOptionValue<?>... options) |
static <T> T |
Clients.newClient(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 default ClientFactory. |
static <T> T |
Clients.newClient(String uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
uri using the default
ClientFactory. |
<T> T |
ClientFactory.newClient(String uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
uri. |
<T> T |
AbstractClientFactory.newClient(String uri,
Class<T> clientType,
ClientOptionValue<?>... options) |
static <T> T |
Clients.newClient(URI uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
URI using the default
ClientFactory. |
<T> T |
ClientFactory.newClient(URI uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
URI. |
<T> T |
AbstractClientFactory.newClient(URI uri,
Class<T> clientType,
ClientOptionValue<?>... options) |
static <T> T |
Clients.newDerivedClient(T client,
ClientOptionValue<?>... additionalOptions)
Creates a new derived client that connects to the same
URI with the specified client
and the specified additionalOptions. |
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,
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,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
URI using an alternative
ClientFactory. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
ClientOptionValue<?>... options)
Merges the specified
ClientOptions and ClientOptionValues. |
static ClientOptions |
ClientOptions.of(ClientOptionValue<?>... options)
Returns the
ClientOptions with the specified ClientOptionValues. |
static WebClient |
WebClient.of(SessionProtocol protocol,
Endpoint endpoint,
ClientOptionValue<?>... 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,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
uri using the default
ClientFactory. |
static WebClient |
WebClient.of(URI uri,
ClientOptionValue<?>... options)
Creates a new web client that connects to the specified
URI using the default
ClientFactory. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Clients.newDerivedClient(T client,
Iterable<ClientOptionValue<?>> additionalOptions)
Creates a new derived client that connects to the same
URI with the specified client
and the specified additionalOptions. |
static ClientOptions |
ClientOptions.of(ClientOptions baseOptions,
Iterable<ClientOptionValue<?>> options)
Merges the specified
ClientOptions and ClientOptionValues. |
static ClientOptions |
ClientOptions.of(Iterable<ClientOptionValue<?>> options)
Returns the
ClientOptions with the specified ClientOptionValues. |
Copyright © 2020 LeanCloud. All rights reserved.