Class DefaultServerChannelConfig
java.lang.Object
org.jboss.netty.channel.DefaultServerChannelConfig
- All Implemented Interfaces:
ChannelConfig
- Direct Known Subclasses:
DefaultServerSocketChannelConfig
The default
ServerSocketChannelConfig implementation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the defaultChannelBufferFactoryused to create a newChannelBuffer.intReturns the connect timeout of the channel in milliseconds.Returns theChannelPipelineFactorywhich will be used when a child channel is created.voidsetBufferFactory(ChannelBufferFactory bufferFactory) Sets the defaultChannelBufferFactoryused to create a newChannelBuffer.voidsetConnectTimeoutMillis(int connectTimeoutMillis) Sets the connect timeout of the channel in milliseconds.booleanSets an individual option.voidsetOptions(Map<String, Object> options) Sets the configuration properties from the specifiedMap.voidsetPipelineFactory(ChannelPipelineFactory pipelineFactory) Sets theChannelPipelineFactorywhich will be used when a child channel is created.
-
Field Details
-
pipelineFactory
-
bufferFactory
-
-
Constructor Details
-
DefaultServerChannelConfig
public DefaultServerChannelConfig()
-
-
Method Details
-
setOptions
Description copied from interface:ChannelConfigSets the configuration properties from the specifiedMap.- Specified by:
setOptionsin interfaceChannelConfig
-
setOption
Sets an individual option. You can override this method to support additional configuration parameters.- Specified by:
setOptionin interfaceChannelConfig- Returns:
trueif and only if the property has been set
-
getPipelineFactory
Description copied from interface:ChannelConfigReturns theChannelPipelineFactorywhich will be used when a child channel is created. If theChanneldoes not create a child channel, this property is not used at all, and therefore will be ignored.- Specified by:
getPipelineFactoryin interfaceChannelConfig
-
setPipelineFactory
Description copied from interface:ChannelConfigSets theChannelPipelineFactorywhich will be used when a child channel is created. If theChanneldoes not create a child channel, this property is not used at all, and therefore will be ignored.- Specified by:
setPipelineFactoryin interfaceChannelConfig
-
getBufferFactory
Description copied from interface:ChannelConfigReturns the defaultChannelBufferFactoryused to create a newChannelBuffer. The default isHeapChannelBufferFactory. You can specify a different factory to change the defaultByteOrderfor example.- Specified by:
getBufferFactoryin interfaceChannelConfig
-
setBufferFactory
Description copied from interface:ChannelConfigSets the defaultChannelBufferFactoryused to create a newChannelBuffer. The default isHeapChannelBufferFactory. You can specify a different factory to change the defaultByteOrderfor example.- Specified by:
setBufferFactoryin interfaceChannelConfig
-
getConnectTimeoutMillis
public int getConnectTimeoutMillis()Description copied from interface:ChannelConfigReturns the connect timeout of the channel in milliseconds. If theChanneldoes not support connect operation, this property is not used at all, and therefore will be ignored.- Specified by:
getConnectTimeoutMillisin interfaceChannelConfig- Returns:
- the connect timeout in milliseconds.
0if disabled.
-
setConnectTimeoutMillis
public void setConnectTimeoutMillis(int connectTimeoutMillis) Description copied from interface:ChannelConfigSets the connect timeout of the channel in milliseconds. If theChanneldoes not support connect operation, this property is not used at all, and therefore will be ignored.- Specified by:
setConnectTimeoutMillisin interfaceChannelConfig- Parameters:
connectTimeoutMillis- the connect timeout in milliseconds.0to disable.
-