| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| Modifier and Type | Field and Description |
|---|---|
static ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends io.netty.resolver.AddressResolverGroup<? extends InetSocketAddress>>> |
ClientFactoryOption.ADDRESS_RESOLVER_GROUP_FACTORY
The factory that creates an
AddressResolverGroup which resolves remote addresses into
InetSocketAddresses. |
static ClientFactoryOption<Map<io.netty.channel.ChannelOption<?>,Object>> |
ClientFactoryOption.CHANNEL_OPTIONS
The
ChannelOptions of the sockets created by the ClientFactory. |
static ClientFactoryOption<ConnectionPoolListener> |
ClientFactoryOption.CONNECTION_POOL_LISTENER
The listener which is notified on a connection pool event.
|
static ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends EventLoopScheduler>> |
ClientFactoryOption.EVENT_LOOP_SCHEDULER_FACTORY
The factory that creates an
EventLoopScheduler which is responsible for assigning an
EventLoop to handle a connection to the specified Endpoint. |
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP1_MAX_CHUNK_SIZE
The maximum length of each chunk in an HTTP/1 response content.
|
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP1_MAX_HEADER_SIZE
The maximum length of all headers in an HTTP/1 response.
|
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP1_MAX_INITIAL_LINE_LENGTH
The maximum length of an HTTP/1 response initial line.
|
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP2_INITIAL_CONNECTION_WINDOW_SIZE
The HTTP/2 initial connection flow-control
window size.
|
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP2_INITIAL_STREAM_WINDOW_SIZE
The SETTINGS_INITIAL_WINDOW_SIZE
for HTTP/2 stream-level flow control.
|
static ClientFactoryOption<Integer> |
ClientFactoryOption.HTTP2_MAX_FRAME_SIZE
The SETTINGS_MAX_FRAME_SIZE
that indicates the size of the largest frame payload that this client is willing to receive.
|
static ClientFactoryOption<Long> |
ClientFactoryOption.HTTP2_MAX_HEADER_LIST_SIZE
The HTTP/2 SETTINGS_MAX_HEADER_LIST_SIZE
that indicates the maximum size of header list that the client is prepared to accept, in octets.
|
static ClientFactoryOption<Long> |
ClientFactoryOption.IDLE_TIMEOUT_MILLIS
The idle timeout of a socket connection in milliseconds.
|
static ClientFactoryOption<MeterRegistry> |
ClientFactoryOption.METER_REGISTRY
The
MeterRegistry which collects various stats. |
static ClientFactoryOption<Boolean> |
ClientFactoryOption.SHUTDOWN_WORKER_GROUP_ON_CLOSE
Whether to shut down the worker
EventLoopGroup when the ClientFactory is closed. |
static ClientFactoryOption<Consumer<? super io.netty.handler.ssl.SslContextBuilder>> |
ClientFactoryOption.SSL_CONTEXT_CUSTOMIZER
Deprecated.
Use
TLS_CUSTOMIZER. |
static ClientFactoryOption<Consumer<? super io.netty.handler.ssl.SslContextBuilder>> |
ClientFactoryOption.TLS_CUSTOMIZER
The
Consumer which can arbitrarily configure the SslContextBuilder that will be
applied to the SSL session. |
static ClientFactoryOption<Boolean> |
ClientFactoryOption.USE_HTTP1_PIPELINING
Whether to use HTTP pipelining for
HTTP/1 connections.
|
static ClientFactoryOption<Boolean> |
ClientFactoryOption.USE_HTTP2_PREFACE
Whether to send an HTTP/2 preface string instead of an HTTP/1 upgrade request to negotiate
the protocol version of a cleartext HTTP connection.
|
static ClientFactoryOption<io.netty.channel.EventLoopGroup> |
ClientFactoryOption.WORKER_GROUP
The worker
EventLoopGroup. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ClientFactoryOption<T> |
ClientFactoryOption.valueOf(String name)
Returns the
ClientFactoryOption of the specified name. |
| Modifier and Type | Method and Description |
|---|---|
Map<ClientFactoryOption<Object>,ClientFactoryOptionValue<Object>> |
ClientFactoryOptions.asMap()
Converts this
ClientFactoryOptions to a Map. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ClientFactoryOptions.get(ClientFactoryOption<T> option)
Returns the value of the specified
ClientFactoryOption. |
<T> T |
ClientFactoryOptions.getOrElse(ClientFactoryOption<T> option,
T defaultValue)
Returns the value of the specified
ClientFactoryOption. |
<T> T |
ClientFactoryOptions.getOrNull(ClientFactoryOption<T> option)
Returns the value of the specified
ClientFactoryOption. |
<T> ClientFactoryBuilder |
ClientFactoryBuilder.option(ClientFactoryOption<T> option,
T value)
Adds the specified
ClientFactoryOption and its value. |
Copyright © 2020 LeanCloud. All rights reserved.