|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.channel.DefaultServerChannelConfig
public class DefaultServerChannelConfig
The default ServerSocketChannelConfig
implementation.
Constructor Summary | |
---|---|
DefaultServerChannelConfig()
Creates a new instance. |
Method Summary | |
---|---|
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(String key,
Object value)
Sets an individual option. |
void |
setOptions(Map<String,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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultServerChannelConfig()
Method Detail |
---|
public void setOptions(Map<String,Object> options)
ChannelConfig
Map
.
setOptions
in interface ChannelConfig
public boolean setOption(String key, Object value)
setOption
in interface ChannelConfig
true
if and only if the property has been setpublic ChannelPipelineFactory getPipelineFactory()
ChannelConfig
ChannelPipelineFactory
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
in interface ChannelConfig
public void setPipelineFactory(ChannelPipelineFactory pipelineFactory)
ChannelConfig
ChannelPipelineFactory
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
in interface ChannelConfig
public ChannelBufferFactory getBufferFactory()
ChannelConfig
ChannelBufferFactory
used to create a new
ChannelBuffer
. The default is HeapChannelBufferFactory
.
You can specify a different factory to change the default
ByteOrder
for example.
getBufferFactory
in interface ChannelConfig
public void setBufferFactory(ChannelBufferFactory bufferFactory)
ChannelConfig
ChannelBufferFactory
used to create a new
ChannelBuffer
. The default is HeapChannelBufferFactory
.
You can specify a different factory to change the default
ByteOrder
for example.
setBufferFactory
in interface ChannelConfig
public int getConnectTimeoutMillis()
ChannelConfig
Channel
does not support connect operation, this property is not
used at all, and therefore will be ignored.
getConnectTimeoutMillis
in interface ChannelConfig
0
if disabled.public void setConnectTimeoutMillis(int connectTimeoutMillis)
ChannelConfig
Channel
does not support connect operation, this property is not
used at all, and therefore will be ignored.
setConnectTimeoutMillis
in interface ChannelConfig
connectTimeoutMillis
- the connect timeout in milliseconds.
0
to disable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |