
public class DefaultServerSocketChannelConfig extends DefaultServerChannelConfig implements ServerSocketChannelConfig
ServerSocketChannelConfig implementation.| Constructor and Description |
|---|
DefaultServerSocketChannelConfig(ServerSocket socket)
Creates a new instance.
|
| 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
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(String key,
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(ServerSocket socket)
public boolean setOption(String key, Object value)
DefaultServerChannelConfigsetOption in interface ChannelConfigsetOption in class DefaultServerChannelConfigtrue if and only if the property has been setpublic boolean isReuseAddress()
ServerSocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.isReuseAddress in interface ServerSocketChannelConfigpublic void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.setReuseAddress in interface ServerSocketChannelConfigpublic int getReceiveBufferSize()
ServerSocketChannelConfigStandardSocketOptions.SO_RCVBUF option.getReceiveBufferSize in interface ServerSocketChannelConfigpublic void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfigStandardSocketOptions.SO_RCVBUF option.setReceiveBufferSize in interface ServerSocketChannelConfigpublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
ServerSocketChannelConfigServerSocket.setPerformancePreferences(int, int, int).setPerformancePreferences in interface ServerSocketChannelConfigpublic int getBacklog()
ServerSocketChannelConfiggetBacklog in interface ServerSocketChannelConfigpublic void setBacklog(int backlog)
ServerSocketChannelConfigsetBacklog in interface ServerSocketChannelConfigCopyright © 2008-2013 The Netty Project. All Rights Reserved.