public class NettyConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NETTY_METRICS_REFRESH_INTERVAL_SECONDS |
static java.lang.String |
NETTY_METRICS_STOP_WAIT_TIMEOUT_SECONDS |
static java.lang.String |
NETTY_MULTIPART_POST_MAX_SIZE_BYTES |
static java.lang.String |
NETTY_SERVER_BLACKLISTED_QUERY_PARAMS |
static java.lang.String |
NETTY_SERVER_BOSS_THREAD_COUNT |
static java.lang.String |
NETTY_SERVER_CLOSE_DELAY_TIMEOUT_MS |
static java.lang.String |
NETTY_SERVER_ENABLE_SSL |
static java.lang.String |
NETTY_SERVER_IDLE_TIME_SECONDS |
static java.lang.String |
NETTY_SERVER_MAX_CHUNK_SIZE |
static java.lang.String |
NETTY_SERVER_MAX_HEADER_SIZE |
static java.lang.String |
NETTY_SERVER_MAX_INITIAL_LINE_LENGTH |
static java.lang.String |
NETTY_SERVER_PORT |
static java.lang.String |
NETTY_SERVER_REQUEST_BUFFER_WATERMARK |
static java.lang.String |
NETTY_SERVER_SO_BACKLOG |
static java.lang.String |
NETTY_SERVER_SSL_PORT |
static java.lang.String |
NETTY_SERVER_WORKER_THREAD_COUNT |
java.util.Set<java.lang.String> |
nettyBlacklistedQueryParams
A comma separated list of query parameters that should not be honored when forwarded to the
RestRequestService layer. |
int |
nettyMetricsRefreshIntervalSeconds
The interval to update netty metrics in the collecting thread.
|
int |
nettyMetricsStopWaitTimeoutSeconds
The duration to wait for netty metrics collector to stop before forcelly shutting it down.
|
long |
nettyMultipartPostMaxSizeBytes
The threshold (in bytes) for POSTs via multipart/form-data.
|
int |
nettyServerBossThreadCount
Number of netty boss threads.
|
int |
nettyServerCloseDelayTimeoutMs
The duration to wait for before closing the netty channel in case of failures.
|
boolean |
nettyServerEnableSSL
Enable the netty server SSL port.
|
int |
nettyServerIdleTimeSeconds
The amount of time a channel is allowed to be idle before it's closed.
|
int |
nettyServerMaxChunkSize
The maximum size of a chunk that is prepared for processing (in bytes).
|
int |
nettyServerMaxHeaderSize
The maximum size of a header in a request (in bytes).
|
int |
nettyServerMaxInitialLineLength
The maximum length of the initial line in a request (in bytes).
|
int |
nettyServerPort
Port on which to run netty server for plaintext connections.
|
int |
nettyServerRequestBufferWatermark
The threshold of the size of buffered data at which reading from a client channel will be suspended.
|
int |
nettyServerSoBacklog
Socket backlog size.
|
java.lang.String |
nettyServerSslFactory
If set, use this implementation of
SSLFactory to use for the netty HTTP server. |
int |
nettyServerSSLPort
Port on which to run netty server for SSL connections.
|
int |
nettyServerWorkerThreadCount
Number of netty worker threads.
|
static java.lang.String |
SSL_FACTORY_KEY |
Constructor and Description |
---|
NettyConfig(VerifiableProperties verifiableProperties) |
public static final java.lang.String NETTY_SERVER_BOSS_THREAD_COUNT
public static final java.lang.String NETTY_SERVER_IDLE_TIME_SECONDS
public static final java.lang.String NETTY_SERVER_PORT
public static final java.lang.String NETTY_SERVER_SSL_PORT
public static final java.lang.String NETTY_SERVER_ENABLE_SSL
public static final java.lang.String NETTY_SERVER_SO_BACKLOG
public static final java.lang.String NETTY_SERVER_WORKER_THREAD_COUNT
public static final java.lang.String NETTY_SERVER_MAX_INITIAL_LINE_LENGTH
public static final java.lang.String NETTY_SERVER_MAX_HEADER_SIZE
public static final java.lang.String NETTY_SERVER_MAX_CHUNK_SIZE
public static final java.lang.String NETTY_SERVER_REQUEST_BUFFER_WATERMARK
public static final java.lang.String NETTY_SERVER_BLACKLISTED_QUERY_PARAMS
public static final java.lang.String NETTY_MULTIPART_POST_MAX_SIZE_BYTES
public static final java.lang.String SSL_FACTORY_KEY
public static final java.lang.String NETTY_METRICS_REFRESH_INTERVAL_SECONDS
public static final java.lang.String NETTY_METRICS_STOP_WAIT_TIMEOUT_SECONDS
public static final java.lang.String NETTY_SERVER_CLOSE_DELAY_TIMEOUT_MS
@Config(value="netty.server.boss.thread.count") @Default(value="1") public final int nettyServerBossThreadCount
@Config(value="netty.server.idle.time.seconds") @Default(value="60") public final int nettyServerIdleTimeSeconds
@Config(value="netty.server.port") @Default(value="1174") public final int nettyServerPort
@Config(value="netty.server.ssl.port") @Default(value="1175") public final int nettyServerSSLPort
@Config(value="netty.server.enable.ssl") @Default(value="false") public final boolean nettyServerEnableSSL
@Config(value="netty.server.so.backlog") @Default(value="100") public final int nettyServerSoBacklog
@Config(value="netty.server.worker.thread.count") @Default(value="1") public final int nettyServerWorkerThreadCount
@Config(value="netty.server.max.initial.line.length") @Default(value="4096") public final int nettyServerMaxInitialLineLength
@Config(value="netty.server.max.header.size") @Default(value="8192") public final int nettyServerMaxHeaderSize
@Config(value="netty.server.max.chunk.size") @Default(value="8192") public final int nettyServerMaxChunkSize
@Config(value="netty.server.request.buffer.watermark") @Default(value="32 * 1024 * 1024") public final int nettyServerRequestBufferWatermark
@Config(value="netty.server.blacklisted.query.params") @Default(value="") public final java.util.Set<java.lang.String> nettyBlacklistedQueryParams
RestRequestService
layer.@Config(value="netty.multipart.post.max.size.bytes") @Default(value="20 * 1024 * 1024") public final long nettyMultipartPostMaxSizeBytes
@Config(value="netty.server.ssl.factory") @Default(value="") public final java.lang.String nettyServerSslFactory
SSLFactory
to use for the netty HTTP server.
Otherwise, share the factory instance with the router.@Config(value="netty.metrics.refresh.interval.seconds") @Default(value="30") public final int nettyMetricsRefreshIntervalSeconds
@Config(value="netty.metrics.stop.wait.timeout.seconds") @Default(value="1") public final int nettyMetricsStopWaitTimeoutSeconds
public NettyConfig(VerifiableProperties verifiableProperties)