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 default
ServerSocketChannelConfig implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the backlog value to specify when the channel binds to a local address.intGets theStandardSocketOptions.SO_RCVBUFoption.booleanGets theStandardSocketOptions.SO_REUSEADDRoption.voidsetBacklog(int backlog) Sets the backlog value to specify when the channel binds to a local address.booleanSets 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, setPipelineFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.netty.channel.ChannelConfig
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory
-
Field Details
-
socket
-
backlog
private volatile int backlog
-
-
Constructor Details
-
DefaultServerSocketChannelConfig
Creates a new instance.
-
-
Method Details
-
setOption
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
-