T - the type of the Builderpublic static class NettyServerConfig.Builder<T extends NettyServerConfig.Builder<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
bossThreadsCount |
protected boolean |
compressResponses |
protected HttpConnectorConfig |
httpConnectorConfig |
protected HttpsConnectorConfig |
httpsConnectorConfig |
protected int |
keepAliveTimeoutMillis |
protected int |
maxChunkSize |
protected int |
maxConnectionsCount |
protected int |
maxHeaderSize |
protected int |
maxInitialLength |
protected int |
nioAcceptorBacklog |
protected int |
requestTimeoutMs |
protected int |
workerThreadsCount |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
NettyServerConfig |
build() |
NettyServerConfig.Builder |
httpPort(int port) |
T |
setBossThreadsCount(Integer bossThreadsCount) |
T |
setCompressResponses(boolean compressResponses) |
T |
setConnectors(NettyServerConfig.Connectors connectors) |
T |
setHttpConnector(HttpConnectorConfig httpConnector) |
T |
setHttpsConnector(HttpsConnectorConfig httpsConnector) |
T |
setKeepAliveTimeoutMillis(Integer keepAliveTimeoutMillis) |
T |
setMaxChunkSize(Integer maxChunkSize) |
T |
setMaxConnectionsCount(Integer maxConnectionsCount) |
T |
setMaxHeaderSize(Integer maxHeaderSize) |
T |
setMaxInitialLength(Integer maxInitialLength) |
T |
setNioAcceptorBacklog(Integer nioAcceptorBacklog) |
T |
setRequestTimeoutMs(Integer requestTimeoutMs) |
T |
setWorkerThreadsCount(Integer workerThreadsCount) |
protected int bossThreadsCount
protected int workerThreadsCount
protected int nioAcceptorBacklog
protected int maxInitialLength
protected int maxHeaderSize
protected int maxChunkSize
protected int requestTimeoutMs
protected int keepAliveTimeoutMillis
protected int maxConnectionsCount
protected HttpConnectorConfig httpConnectorConfig
protected HttpsConnectorConfig httpsConnectorConfig
protected boolean compressResponses
public NettyServerConfig.Builder httpPort(int port)
public T setConnectors(NettyServerConfig.Connectors connectors)
public T setHttpConnector(HttpConnectorConfig httpConnector)
public T setHttpsConnector(HttpsConnectorConfig httpsConnector)
public T setCompressResponses(boolean compressResponses)
public NettyServerConfig build()
Copyright © 2013–2020 Hotels.com. All rights reserved.