Name |
Associated setter method |
"writeBufferHighWaterMark" |
默认 64 * 1024(用法未知) |
"writeBufferLowWaterMark" |
默认 32 * 1024(用法未知) |
"writeSpinCount" |
默认 16(重复写次数,用法未知) |
"broadcast" |
true / false 多播模式(UDP适用) |
"interface" |
|
"loopbackModeDisabled" |
实际调用的是channel.setOption(StandardSocketOptions.IP_MULTICAST_LOOP, loopbackModeDisabled);仅针对JDK7+有效 |
"networkInterface" |
实际调用的是channel.setOption(StandardSocketOptions.IP_MULTICAST_IF, networkInterface);仅针对JDK7+有效 |
"reuseAddress" |
|
"receiveBufferSize" |
数据包接收大小 |
"receiveBufferSizePredictor" |
数据包接收大小:默认设置为FixedReceiveBufferSizePredictor(768),超过后丢弃 |
"receiveBufferSizePredictorFactory" |
似乎与上面的功能相同,设置方式:new FixedReceiveBufferSizePredictorFactory(1024) |
"sendBufferSize" |
|
"timeToLive" |
JDK7+版本有效 |
"trafficClass" |
|
bufferFactory" |
用于创建ChannelBuffer的工厂,默认HeapChannelBufferFactory |
"connectTimeoutMillis" |
|
"pipelineFactory" |
仅适用于child channel 创建时有效 |
"keepAlive" |
启用/禁用Nagle算法 |
"soLinger" |
Socket关闭时的延迟时间(单位:秒) |
"tcpNoDelay" |
启用/禁用Nagle算法 |
相关文章
- 11-10listdir-isdir-isfile用法解释
- 11-10关于电信cdma基站nid,sid,bid的解释
- 11-10【Netty】传输(Transport)
- 11-10Day4:编译型和解释型,idea的使用和配置
- 11-10关于bedtools merge 功能中sort 命令的解释
- 11-10你给我解释解释,为什么TMD非得选择SpringCloud alibaba作为微服务开发框架?
- 11-10【转】fuzzy control中rule list 解释
- 11-10ResNet几种变体,以及DenseNet解释
- 11-10Netty的Decoder Handler 处理流程
- 11-10重构改善既有代码设计--重构手法05:Introduce Explaining Variable (引入解释性变量)