Package org.jboss.netty.channel.socket
Class DefaultServerSocketChannelConfig
- java.lang.Object
-
- org.jboss.netty.channel.DefaultServerChannelConfig
-
- org.jboss.netty.channel.socket.DefaultServerSocketChannelConfig
-
- All Implemented Interfaces:
ChannelConfig,ServerSocketChannelConfig
public class DefaultServerSocketChannelConfig extends DefaultServerChannelConfig implements ServerSocketChannelConfig
The defaultServerSocketChannelConfigimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultServerSocketChannelConfig(java.net.ServerSocket socket)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBacklog()Gets the backlog value to specify when the channel binds to a local address.intgetReceiveBufferSize()Gets theStandardSocketOptions.SO_RCVBUFoption.booleanisReuseAddress()Gets theStandardSocketOptions.SO_REUSEADDRoption.voidsetBacklog(int backlog)Sets the backlog value to specify when the channel binds to a local address.booleansetOption(java.lang.String key, java.lang.Object value)Sets an individual option.voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth)Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).voidsetReceiveBufferSize(int receiveBufferSize)Sets theStandardSocketOptions.SO_RCVBUFoption.voidsetReuseAddress(boolean reuseAddress)Sets theStandardSocketOptions.SO_REUSEADDRoption.-
Methods inherited from class org.jboss.netty.channel.DefaultServerChannelConfig
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.netty.channel.ChannelConfig
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory
-
-
-
-
Method Detail
-
setOption
public boolean setOption(java.lang.String key, java.lang.Object value)Description copied from class:DefaultServerChannelConfigSets an individual option. You can override this method to support additional configuration parameters.- Specified by:
setOptionin interfaceChannelConfig- Overrides:
setOptionin classDefaultServerChannelConfig- Returns:
trueif and only if the property has been set
-
isReuseAddress
public boolean isReuseAddress()
Description copied from interface:ServerSocketChannelConfigGets theStandardSocketOptions.SO_REUSEADDRoption.- Specified by:
isReuseAddressin interfaceServerSocketChannelConfig
-
setReuseAddress
public void setReuseAddress(boolean reuseAddress)
Description copied from interface:ServerSocketChannelConfigSets theStandardSocketOptions.SO_REUSEADDRoption.- Specified by:
setReuseAddressin interfaceServerSocketChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()
Description copied from interface:ServerSocketChannelConfigGets theStandardSocketOptions.SO_RCVBUFoption.- Specified by:
getReceiveBufferSizein interfaceServerSocketChannelConfig
-
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize)
Description copied from interface:ServerSocketChannelConfigSets theStandardSocketOptions.SO_RCVBUFoption.- Specified by:
setReceiveBufferSizein interfaceServerSocketChannelConfig
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)Description copied from interface:ServerSocketChannelConfigSets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).- Specified by:
setPerformancePreferencesin interfaceServerSocketChannelConfig
-
getBacklog
public int getBacklog()
Description copied from interface:ServerSocketChannelConfigGets the backlog value to specify when the channel binds to a local address.- Specified by:
getBacklogin interfaceServerSocketChannelConfig
-
setBacklog
public void setBacklog(int backlog)
Description copied from interface:ServerSocketChannelConfigSets the backlog value to specify when the channel binds to a local address.- Specified by:
setBacklogin interfaceServerSocketChannelConfig
-
-