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, setPipelineFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory
public DefaultServerSocketChannelConfig(java.net.ServerSocket socket)
public boolean setOption(java.lang.String key, java.lang.Object value)
DefaultServerChannelConfig
setOption
在接口中 ChannelConfig
setOption
在类中 DefaultServerChannelConfig
true
if and only if the property has been setpublic boolean isReuseAddress()
ServerSocketChannelConfig
StandardSocketOptions.SO_REUSEADDR
option.isReuseAddress
在接口中 ServerSocketChannelConfig
public void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfig
StandardSocketOptions.SO_REUSEADDR
option.setReuseAddress
在接口中 ServerSocketChannelConfig
public int getReceiveBufferSize()
ServerSocketChannelConfig
StandardSocketOptions.SO_RCVBUF
option.public void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfig
StandardSocketOptions.SO_RCVBUF
option.public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
ServerSocketChannelConfig
ServerSocket.setPerformancePreferences(int, int, int)
.public int getBacklog()
ServerSocketChannelConfig
getBacklog
在接口中 ServerSocketChannelConfig
public void setBacklog(int backlog)
ServerSocketChannelConfig
setBacklog
在接口中 ServerSocketChannelConfig