
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
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.
|
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
SO_RCVBUF option. |
void |
setReuseAddress(boolean reuseAddress)
Sets the
SO_REUSEADDR option. |
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, getWriteTimeoutMillis, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory, setWriteTimeoutMillisclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBufferFactory, getConnectTimeoutMillis, getPipelineFactory, getWriteTimeoutMillis, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory, setWriteTimeoutMillispublic 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()
ServerSocketChannelConfigSO_REUSEADDR option.isReuseAddress in interface ServerSocketChannelConfigpublic void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfigSO_REUSEADDR option.setReuseAddress in interface ServerSocketChannelConfigpublic int getReceiveBufferSize()
ServerSocketChannelConfigSO_RCVBUF option.getReceiveBufferSize in interface ServerSocketChannelConfigpublic void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfigSO_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 JBoss, by Red Hat. All Rights Reserved.