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 TypeMethodDescriptionintGets the backlog value to specify when the channel binds to a local address.intGets theStandardSocketOptions.SO_RCVBUFoption.booleanGets theStandardSocketOptions.SO_REUSEADDRoption.voidsetBacklog(int backlog) Sets the backlog value to specify when the channel binds to a local address.voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).voidsetReceiveBufferSize(int receiveBufferSize) Sets theStandardSocketOptions.SO_RCVBUFoption.voidsetReuseAddress(boolean reuseAddress) Sets theStandardSocketOptions.SO_REUSEADDRoption.Methods inherited from interface 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_REUSEADDRoption. -
setReuseAddress
void setReuseAddress(boolean reuseAddress) Sets theStandardSocketOptions.SO_REUSEADDRoption. -
getReceiveBufferSize
int getReceiveBufferSize()Gets theStandardSocketOptions.SO_RCVBUFoption. -
setReceiveBufferSize
void setReceiveBufferSize(int receiveBufferSize) Sets theStandardSocketOptions.SO_RCVBUFoption. -
setPerformancePreferences
void setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).
-