public class DefaultServerSocketChannelConfig extends DefaultServerChannelConfig implements ServerSocketChannelConfig
ServerSocketChannelConfig implementation.| 构造器和说明 |
|---|
DefaultServerSocketChannelConfig(java.net.ServerSocket socket)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
boolean |
setOption(java.lang.String key,
java.lang.Object value)
Sets an individual option.
|
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, setOptions, setPipelineFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactorypublic DefaultServerSocketChannelConfig(java.net.ServerSocket socket)
public boolean setOption(java.lang.String key,
java.lang.Object value)
DefaultServerChannelConfigsetOption 在接口中 ChannelConfigsetOption 在类中 DefaultServerChannelConfigtrue if and only if the property has been setpublic boolean isReuseAddress()
ServerSocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.isReuseAddress 在接口中 ServerSocketChannelConfigpublic void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.setReuseAddress 在接口中 ServerSocketChannelConfigpublic int getReceiveBufferSize()
ServerSocketChannelConfigStandardSocketOptions.SO_RCVBUF option.public void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfigStandardSocketOptions.SO_RCVBUF option.public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
ServerSocketChannelConfigServerSocket.setPerformancePreferences(int, int, int).public int getBacklog()
ServerSocketChannelConfiggetBacklog 在接口中 ServerSocketChannelConfigpublic void setBacklog(int backlog)
ServerSocketChannelConfigsetBacklog 在接口中 ServerSocketChannelConfig