Package org.jboss.netty.channel.socket
Interface SocketChannelConfig
-
- All Superinterfaces:
ChannelConfig
- All Known Subinterfaces:
NioSocketChannelConfig
- All Known Implementing Classes:
DefaultNioSocketChannelConfig
,DefaultSocketChannelConfig
,HttpTunnelingSocketChannelConfig
public interface SocketChannelConfig extends ChannelConfig
AChannelConfig
for aSocketChannel
.Available options
In addition to the options provided byChannelConfig
,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)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getReceiveBufferSize()
Gets theStandardSocketOptions.SO_RCVBUF
option.int
getSendBufferSize()
Gets theStandardSocketOptions.SO_SNDBUF
option.int
getSoLinger()
Gets theStandardSocketOptions.SO_LINGER
option.int
getTrafficClass()
Gets theStandardSocketOptions.IP_TOS
option.boolean
isKeepAlive()
Gets theStandardSocketOptions.SO_KEEPALIVE
option.boolean
isReuseAddress()
Gets theStandardSocketOptions.SO_REUSEADDR
option.boolean
isTcpNoDelay()
Gets theStandardSocketOptions.TCP_NODELAY
option.void
setKeepAlive(boolean keepAlive)
Sets theStandardSocketOptions.SO_KEEPALIVE
option.void
setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Sets the performance preferences as specified inSocket.setPerformancePreferences(int, int, int)
.void
setReceiveBufferSize(int receiveBufferSize)
Sets theStandardSocketOptions.SO_RCVBUF
option.void
setReuseAddress(boolean reuseAddress)
Sets theStandardSocketOptions.SO_REUSEADDR
option.void
setSendBufferSize(int sendBufferSize)
Sets theStandardSocketOptions.SO_SNDBUF
option.void
setSoLinger(int soLinger)
Sets theStandardSocketOptions.SO_LINGER
option.void
setTcpNoDelay(boolean tcpNoDelay)
Sets theStandardSocketOptions.TCP_NODELAY
option.void
setTrafficClass(int trafficClass)
Sets theStandardSocketOptions.IP_TOS
option.-
Methods inherited from interface org.jboss.netty.channel.ChannelConfig
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
-
-
-
-
Method Detail
-
isTcpNoDelay
boolean isTcpNoDelay()
Gets theStandardSocketOptions.TCP_NODELAY
option.
-
setTcpNoDelay
void setTcpNoDelay(boolean tcpNoDelay)
Sets theStandardSocketOptions.TCP_NODELAY
option.
-
getSoLinger
int getSoLinger()
Gets theStandardSocketOptions.SO_LINGER
option.
-
setSoLinger
void setSoLinger(int soLinger)
Sets theStandardSocketOptions.SO_LINGER
option.
-
getSendBufferSize
int getSendBufferSize()
Gets theStandardSocketOptions.SO_SNDBUF
option.
-
setSendBufferSize
void setSendBufferSize(int sendBufferSize)
Sets theStandardSocketOptions.SO_SNDBUF
option.
-
getReceiveBufferSize
int getReceiveBufferSize()
Gets theStandardSocketOptions.SO_RCVBUF
option.
-
setReceiveBufferSize
void setReceiveBufferSize(int receiveBufferSize)
Sets theStandardSocketOptions.SO_RCVBUF
option.
-
isKeepAlive
boolean isKeepAlive()
Gets theStandardSocketOptions.SO_KEEPALIVE
option.
-
setKeepAlive
void setKeepAlive(boolean keepAlive)
Sets theStandardSocketOptions.SO_KEEPALIVE
option.
-
getTrafficClass
int getTrafficClass()
Gets theStandardSocketOptions.IP_TOS
option.
-
setTrafficClass
void setTrafficClass(int trafficClass)
Sets theStandardSocketOptions.IP_TOS
option.
-
isReuseAddress
boolean isReuseAddress()
Gets theStandardSocketOptions.SO_REUSEADDR
option.
-
setReuseAddress
void setReuseAddress(boolean reuseAddress)
Sets theStandardSocketOptions.SO_REUSEADDR
option.
-
setPerformancePreferences
void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Sets the performance preferences as specified inSocket.setPerformancePreferences(int, int, int)
.
-
-