public class DefaultServerChannelConfig extends java.lang.Object implements ChannelConfig
ServerSocketChannelConfig implementation.| 构造器和说明 |
|---|
DefaultServerChannelConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
ChannelBufferFactory |
getBufferFactory()
Returns the default
ChannelBufferFactory used to create a new
ChannelBuffer. |
int |
getConnectTimeoutMillis()
Returns the connect timeout of the channel in milliseconds.
|
ChannelPipelineFactory |
getPipelineFactory()
Returns the
ChannelPipelineFactory which will be used when
a child channel is created. |
void |
setBufferFactory(ChannelBufferFactory bufferFactory)
Sets the default
ChannelBufferFactory used to create a new
ChannelBuffer. |
void |
setConnectTimeoutMillis(int connectTimeoutMillis)
Sets the connect timeout of the channel in milliseconds.
|
boolean |
setOption(java.lang.String key,
java.lang.Object value)
Sets an individual option.
|
void |
setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Sets the configuration properties from the specified
Map. |
void |
setPipelineFactory(ChannelPipelineFactory pipelineFactory)
Sets the
ChannelPipelineFactory which will be used when
a child channel is created. |
public void setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
ChannelConfigMap.setOptions 在接口中 ChannelConfigpublic boolean setOption(java.lang.String key,
java.lang.Object value)
setOption 在接口中 ChannelConfigtrue if and only if the property has been setpublic ChannelPipelineFactory getPipelineFactory()
ChannelConfigChannelPipelineFactory which will be used when
a child channel is created. If the Channel does not create
a child channel, this property is not used at all, and therefore will
be ignored.getPipelineFactory 在接口中 ChannelConfigpublic void setPipelineFactory(ChannelPipelineFactory pipelineFactory)
ChannelConfigChannelPipelineFactory which will be used when
a child channel is created. If the Channel does not create
a child channel, this property is not used at all, and therefore will
be ignored.setPipelineFactory 在接口中 ChannelConfigpublic ChannelBufferFactory getBufferFactory()
ChannelConfigChannelBufferFactory used to create a new
ChannelBuffer. The default is HeapChannelBufferFactory.
You can specify a different factory to change the default
ByteOrder for example.getBufferFactory 在接口中 ChannelConfigpublic void setBufferFactory(ChannelBufferFactory bufferFactory)
ChannelConfigChannelBufferFactory used to create a new
ChannelBuffer. The default is HeapChannelBufferFactory.
You can specify a different factory to change the default
ByteOrder for example.setBufferFactory 在接口中 ChannelConfigpublic int getConnectTimeoutMillis()
ChannelConfigChannel does not support connect operation, this property is not
used at all, and therefore will be ignored.getConnectTimeoutMillis 在接口中 ChannelConfig0 if disabled.public void setConnectTimeoutMillis(int connectTimeoutMillis)
ChannelConfigChannel does not support connect operation, this property is not
used at all, and therefore will be ignored.setConnectTimeoutMillis 在接口中 ChannelConfigconnectTimeoutMillis - the connect timeout in milliseconds.
0 to disable.