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, setPipelineFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory
public DefaultServerSocketChannelConfig(ServerSocket socket)
public boolean setOption(String key, Object value)
DefaultServerChannelConfig
setOption
in interface ChannelConfig
setOption
in class DefaultServerChannelConfig
true
if and only if the property has been setpublic boolean isReuseAddress()
ServerSocketChannelConfig
StandardSocketOptions.SO_REUSEADDR
option.isReuseAddress
in interface ServerSocketChannelConfig
public void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfig
StandardSocketOptions.SO_REUSEADDR
option.setReuseAddress
in interface ServerSocketChannelConfig
public int getReceiveBufferSize()
ServerSocketChannelConfig
StandardSocketOptions.SO_RCVBUF
option.getReceiveBufferSize
in interface ServerSocketChannelConfig
public void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfig
StandardSocketOptions.SO_RCVBUF
option.setReceiveBufferSize
in interface ServerSocketChannelConfig
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
ServerSocketChannelConfig
ServerSocket.setPerformancePreferences(int, int, int)
.setPerformancePreferences
in interface ServerSocketChannelConfig
public int getBacklog()
ServerSocketChannelConfig
getBacklog
in interface ServerSocketChannelConfig
public void setBacklog(int backlog)
ServerSocketChannelConfig
setBacklog
in interface ServerSocketChannelConfig
Copyright © 2008-2014 The Netty Project. All Rights Reserved.