T - the type of the option valuepublic final class ClientFactoryOption<T> extends AbstractOption<T>
ClientFactory option.| Modifier and Type | Field and Description |
|---|---|
static ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends io.netty.resolver.AddressResolverGroup<? extends InetSocketAddress>>> |
ADDRESS_RESOLVER_GROUP_FACTORY
The factory that creates an
AddressResolverGroup which resolves remote addresses into
InetSocketAddresses. |
static ClientFactoryOption<Map<io.netty.channel.ChannelOption<?>,Object>> |
CHANNEL_OPTIONS
The
ChannelOptions of the sockets created by the ClientFactory. |
static ClientFactoryOption<ConnectionPoolListener> |
CONNECTION_POOL_LISTENER
The listener which is notified on a connection pool event.
|
static ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends EventLoopScheduler>> |
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> |
HTTP1_MAX_CHUNK_SIZE
The maximum length of each chunk in an HTTP/1 response content.
|
static ClientFactoryOption<Integer> |
HTTP1_MAX_HEADER_SIZE
The maximum length of all headers in an HTTP/1 response.
|
static ClientFactoryOption<Integer> |
HTTP1_MAX_INITIAL_LINE_LENGTH
The maximum length of an HTTP/1 response initial line.
|
static ClientFactoryOption<Integer> |
HTTP2_INITIAL_CONNECTION_WINDOW_SIZE
The HTTP/2 initial connection flow-control
window size.
|
static ClientFactoryOption<Integer> |
HTTP2_INITIAL_STREAM_WINDOW_SIZE
The SETTINGS_INITIAL_WINDOW_SIZE
for HTTP/2 stream-level flow control.
|
static ClientFactoryOption<Integer> |
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> |
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> |
IDLE_TIMEOUT_MILLIS
The idle timeout of a socket connection in milliseconds.
|
static ClientFactoryOption<MeterRegistry> |
METER_REGISTRY
The
MeterRegistry which collects various stats. |
static ClientFactoryOption<Boolean> |
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>> |
SSL_CONTEXT_CUSTOMIZER
Deprecated.
Use
TLS_CUSTOMIZER. |
static ClientFactoryOption<Consumer<? super io.netty.handler.ssl.SslContextBuilder>> |
TLS_CUSTOMIZER
The
Consumer which can arbitrarily configure the SslContextBuilder that will be
applied to the SSL session. |
static ClientFactoryOption<Boolean> |
USE_HTTP1_PIPELINING
Whether to use HTTP pipelining for
HTTP/1 connections.
|
static ClientFactoryOption<Boolean> |
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> |
WORKER_GROUP
The worker
EventLoopGroup. |
| Modifier and Type | Method and Description |
|---|---|
ClientFactoryOptionValue<T> |
newValue(T value)
Creates a new value of this option.
|
static <T> ClientFactoryOption<T> |
valueOf(String name)
Returns the
ClientFactoryOption of the specified name. |
public static final ClientFactoryOption<io.netty.channel.EventLoopGroup> WORKER_GROUP
EventLoopGroup.public static final ClientFactoryOption<Boolean> SHUTDOWN_WORKER_GROUP_ON_CLOSE
EventLoopGroup when the ClientFactory is closed.public static final ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends EventLoopScheduler>> EVENT_LOOP_SCHEDULER_FACTORY
EventLoopScheduler which is responsible for assigning an
EventLoop to handle a connection to the specified Endpoint.public static final ClientFactoryOption<Map<io.netty.channel.ChannelOption<?>,Object>> CHANNEL_OPTIONS
ChannelOptions of the sockets created by the ClientFactory.public static final ClientFactoryOption<Consumer<? super io.netty.handler.ssl.SslContextBuilder>> TLS_CUSTOMIZER
Consumer which can arbitrarily configure the SslContextBuilder that will be
applied to the SSL session.@Deprecated public static final ClientFactoryOption<Consumer<? super io.netty.handler.ssl.SslContextBuilder>> SSL_CONTEXT_CUSTOMIZER
TLS_CUSTOMIZER.Consumer which can arbitrarily configure the SslContextBuilder that will be
applied to the SSL session.public static final ClientFactoryOption<Function<? super io.netty.channel.EventLoopGroup,? extends io.netty.resolver.AddressResolverGroup<? extends InetSocketAddress>>> ADDRESS_RESOLVER_GROUP_FACTORY
AddressResolverGroup which resolves remote addresses into
InetSocketAddresses.public static final ClientFactoryOption<Integer> HTTP2_INITIAL_CONNECTION_WINDOW_SIZE
public static final ClientFactoryOption<Integer> HTTP2_INITIAL_STREAM_WINDOW_SIZE
public static final ClientFactoryOption<Integer> HTTP2_MAX_FRAME_SIZE
public static final ClientFactoryOption<Long> HTTP2_MAX_HEADER_LIST_SIZE
public static final ClientFactoryOption<Integer> HTTP1_MAX_INITIAL_LINE_LENGTH
public static final ClientFactoryOption<Integer> HTTP1_MAX_HEADER_SIZE
public static final ClientFactoryOption<Integer> HTTP1_MAX_CHUNK_SIZE
public static final ClientFactoryOption<Long> IDLE_TIMEOUT_MILLIS
public static final ClientFactoryOption<Boolean> USE_HTTP2_PREFACE
public static final ClientFactoryOption<Boolean> USE_HTTP1_PIPELINING
public static final ClientFactoryOption<ConnectionPoolListener> CONNECTION_POOL_LISTENER
public static final ClientFactoryOption<MeterRegistry> METER_REGISTRY
MeterRegistry which collects various stats.public static <T> ClientFactoryOption<T> valueOf(String name)
ClientFactoryOption of the specified name.public ClientFactoryOptionValue<T> newValue(T value)
Copyright © 2020 LeanCloud. All rights reserved.