public class NettyServerConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NettyServerConfig.Builder<T extends NettyServerConfig.Builder<T>>
Builder.
|
static class |
NettyServerConfig.Connectors
Connectors.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HALF_OF_AVAILABLE_PROCESSORS |
| Modifier | Constructor and Description |
|---|---|
|
NettyServerConfig() |
protected |
NettyServerConfig(NettyServerConfig.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
bossThreadsCount()
Number of threads for establishing new channels.
|
boolean |
compressResponses()
Whether responses should be compressed.
|
Iterable<ConnectorConfig> |
connectors() |
Optional<HttpConnectorConfig> |
httpConnectorConfig() |
Optional<HttpsConnectorConfig> |
httpsConnectorConfig() |
int |
keepAliveTimeoutMillis()
A timeout for idle persistent connections, in milliseconds.
|
int |
maxChunkSize()
The maximum size of an HTTP chunk in bytes.
|
int |
maxConnectionsCount()
Max connections to server before we start rejecting them.
|
int |
maxHeaderSize()
The maximum combined size of the HTTP headers in bytes.
|
int |
maxInitialLength()
The maximum length in bytes of the initial line of an HTTP message, e.g.
|
int |
nioAcceptorBacklog() |
int |
requestTimeoutMillis()
This parameter controls the amount of tolerated inactivity while the request is being received.
|
int |
workerThreadsCount()
Worker threads are those performing all the asynchronous I/O operation on the inbound channel.
|
public NettyServerConfig()
protected NettyServerConfig(NettyServerConfig.Builder<?> builder)
public Optional<HttpConnectorConfig> httpConnectorConfig()
public Optional<HttpsConnectorConfig> httpsConnectorConfig()
public Iterable<ConnectorConfig> connectors()
public int bossThreadsCount()
public int workerThreadsCount()
public int nioAcceptorBacklog()
public int maxInitialLength()
GET http://example.org/ HTTP/1.1.public int maxHeaderSize()
public int maxChunkSize()
public int requestTimeoutMillis()
public int keepAliveTimeoutMillis()
public int maxConnectionsCount()
public boolean compressResponses()
Copyright © 2013–2020 Hotels.com. All rights reserved.