Package org.jboss.netty.channel.socket
Interface ServerSocketChannelConfig
- All Superinterfaces:
ChannelConfig
- All Known Implementing Classes:
DefaultServerSocketChannelConfig
A
ChannelConfig
for a ServerSocketChannel
.
Available options
In addition to the options provided byChannelConfig
,
ServerSocketChannelConfig
allows the following options in the
option map:
Name | Associated setter method |
---|---|
"backlog" | setBacklog(int) |
"reuseAddress" | setReuseAddress(boolean) |
"receiveBufferSize" | setReceiveBufferSize(int) |
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the backlog value to specify when the channel binds to a local address.int
Gets theStandardSocketOptions.SO_RCVBUF
option.boolean
Gets theStandardSocketOptions.SO_REUSEADDR
option.void
setBacklog
(int backlog) Sets the backlog value to specify when the channel binds to a local address.void
setPerformancePreferences
(int connectionTime, int latency, int bandwidth) Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int)
.void
setReceiveBufferSize
(int receiveBufferSize) Sets theStandardSocketOptions.SO_RCVBUF
option.void
setReuseAddress
(boolean reuseAddress) Sets theStandardSocketOptions.SO_REUSEADDR
option.Methods inherited from interface org.jboss.netty.channel.ChannelConfig
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
-
Method Details
-
getBacklog
int getBacklog()Gets the backlog value to specify when the channel binds to a local address. -
setBacklog
void setBacklog(int backlog) Sets the backlog value to specify when the channel binds to a local address. -
isReuseAddress
boolean isReuseAddress()Gets theStandardSocketOptions.SO_REUSEADDR
option. -
setReuseAddress
void setReuseAddress(boolean reuseAddress) Sets theStandardSocketOptions.SO_REUSEADDR
option. -
getReceiveBufferSize
int getReceiveBufferSize()Gets theStandardSocketOptions.SO_RCVBUF
option. -
setReceiveBufferSize
void setReceiveBufferSize(int receiveBufferSize) Sets theStandardSocketOptions.SO_RCVBUF
option. -
setPerformancePreferences
void setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int)
.
-