
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) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBacklog()
Gets the backlog value to specify when the channel binds to a local
address.
|
int |
getReceiveBufferSize()
Gets the
SO_RCVBUF option. |
boolean |
isReuseAddress()
Gets the
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
SO_RCVBUF option. |
void |
setReuseAddress(boolean reuseAddress)
Sets the
SO_REUSEADDR option. |
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, getWriteTimeoutMillis, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory, setWriteTimeoutMillisint getBacklog()
void setBacklog(int backlog)
boolean isReuseAddress()
SO_REUSEADDR option.void setReuseAddress(boolean reuseAddress)
SO_REUSEADDR option.int getReceiveBufferSize()
SO_RCVBUF option.void setReceiveBufferSize(int receiveBufferSize)
SO_RCVBUF option.void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
ServerSocket.setPerformancePreferences(int, int, int).Copyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.