SelectChannelConnector可配置参数
基础参数,继承自AbstractConnector
参数 | 描述 |
name | |
host | |
port | |
integralScheme | |
integralPort | |
confidentialScheme | |
confidentialPort | |
acceptQueueSize | 对应到Socket.backlog requested maximum length of the queue of incoming connections. 小于1,默认为50 |
acceptors | The number of acceptor threads 用于处理接收请求的线程数 |
resolveNames | |
forwarded | |
hostHeader | |
reuseAddress | |
maxIdleTime | 毫秒
* When waiting for a new request to be received on a connection * When reading the headers and content of a request * When writing the headers and content of a response |
lowResourceMaxIdleTime | |
soLingerTime | 对应设置Socket的SO_LINGER |
statsOn |
继承自HttpBuffers的参数
参数 | 描述 |
requestBufferSize | 默认12*1024 |
requestHeaderSize | 默认6*1024 |
responseBufferSize | 默认12*1024 |
responseBufferSize | 默认6*1024 |
继承自AbstractNIOConnector的参数
参数 | 说明 |
useDirectBuffers | 默认为true,使用DirectNIOBuffer,否则使用IndirectNIOBuffer |
IndirectNIOBuffer与DirectNIOBuffer的区别?
SelectChannelConnector本身提供的参数
参数 | 说明 |
maxIdleTime | |
lowResourcesConnections | |
lowResourcesMaxIdleTime |