public interface SocketChannelConfig extends ChannelConfig
ChannelConfig
for a SocketChannel
.
ChannelConfig
,
SocketChannelConfig
allows the following options in the option map:
Name | Associated setter method |
---|---|
"keepAlive" | setKeepAlive(boolean) |
"reuseAddress" | setReuseAddress(boolean) |
"soLinger" | setSoLinger(int) |
"tcpNoDelay" | setTcpNoDelay(boolean) |
"receiveBufferSize" | setReceiveBufferSize(int) |
"sendBufferSize" | setSendBufferSize(int) |
"trafficClass" | setTrafficClass(int) |
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
boolean isTcpNoDelay()
StandardSocketOptions.TCP_NODELAY
option.void setTcpNoDelay(boolean tcpNoDelay)
StandardSocketOptions.TCP_NODELAY
option.int getSoLinger()
StandardSocketOptions.SO_LINGER
option.void setSoLinger(int soLinger)
StandardSocketOptions.SO_LINGER
option.int getSendBufferSize()
StandardSocketOptions.SO_SNDBUF
option.void setSendBufferSize(int sendBufferSize)
StandardSocketOptions.SO_SNDBUF
option.int getReceiveBufferSize()
StandardSocketOptions.SO_RCVBUF
option.void setReceiveBufferSize(int receiveBufferSize)
StandardSocketOptions.SO_RCVBUF
option.boolean isKeepAlive()
StandardSocketOptions.SO_KEEPALIVE
option.void setKeepAlive(boolean keepAlive)
StandardSocketOptions.SO_KEEPALIVE
option.int getTrafficClass()
StandardSocketOptions.IP_TOS
option.void setTrafficClass(int trafficClass)
StandardSocketOptions.IP_TOS
option.boolean isReuseAddress()
StandardSocketOptions.SO_REUSEADDR
option.void setReuseAddress(boolean reuseAddress)
StandardSocketOptions.SO_REUSEADDR
option.void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Socket.setPerformancePreferences(int, int, int)
.Copyright © 2008-2015 The Netty Project. All Rights Reserved.