public interface ServerSocketChannelConfig extends ChannelConfig
ChannelConfig
for a ServerSocketChannel
.
ChannelConfig
,
ServerSocketChannelConfig
allows the following options in the
option map:
Name | Associated setter method |
---|---|
"backlog" | setBacklog(int) |
"reuseAddress" | setReuseAddress(boolean) |
"receiveBufferSize" | setReceiveBufferSize(int) |
限定符和类型 | 方法和说明 |
---|---|
int |
getBacklog()
Gets the backlog value to specify when the channel binds to a local
address.
|
int |
getReceiveBufferSize()
Gets the
StandardSocketOptions.SO_RCVBUF option. |
boolean |
isReuseAddress()
Gets the
StandardSocketOptions.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 in
ServerSocket.setPerformancePreferences(int, int, int) . |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the
StandardSocketOptions.SO_RCVBUF option. |
void |
setReuseAddress(boolean reuseAddress)
Sets the
StandardSocketOptions.SO_REUSEADDR option. |
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
int getBacklog()
void setBacklog(int backlog)
boolean isReuseAddress()
StandardSocketOptions.SO_REUSEADDR
option.void setReuseAddress(boolean reuseAddress)
StandardSocketOptions.SO_REUSEADDR
option.int getReceiveBufferSize()
StandardSocketOptions.SO_RCVBUF
option.void setReceiveBufferSize(int receiveBufferSize)
StandardSocketOptions.SO_RCVBUF
option.void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
ServerSocket.setPerformancePreferences(int, int, int)
.