public abstract class BaseIoServiceConfig extends java.lang.Object implements IoServiceConfig, java.lang.Cloneable
IoServiceConfig
.构造器和说明 |
---|
BaseIoServiceConfig() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this configuration.
|
DefaultIoFilterChainBuilder |
getFilterChain()
A shortcut for ( ( DefaultIoFilterChainBuilder )
IoServiceConfig.getFilterChainBuilder() ). |
IoFilterChainBuilder |
getFilterChainBuilder()
Returns the
IoFilterChainBuilder which will modify the
IoFilterChain of all IoSession s which is created
with this configuration. |
ThreadModel |
getThreadModel()
Returns the default
ThreadModel of the IoService . |
void |
setFilterChainBuilder(IoFilterChainBuilder builder)
Sets the
IoFilterChainBuilder which will modify the
IoFilterChain of all IoSession s which is created
with this configuration. |
void |
setThreadModel(ThreadModel threadModel)
Sets the default
ThreadModel of the IoService . |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionConfig
public IoFilterChainBuilder getFilterChainBuilder()
IoServiceConfig
IoFilterChainBuilder
which will modify the
IoFilterChain
of all IoSession
s which is created
with this configuration.
The default value is an empty DefaultIoFilterChainBuilder
.getFilterChainBuilder
在接口中 IoServiceConfig
public void setFilterChainBuilder(IoFilterChainBuilder builder)
IoServiceConfig
IoFilterChainBuilder
which will modify the
IoFilterChain
of all IoSession
s which is created
with this configuration.
If you specify null this property will be set to
an empty DefaultIoFilterChainBuilder
.setFilterChainBuilder
在接口中 IoServiceConfig
public DefaultIoFilterChainBuilder getFilterChain()
IoServiceConfig
IoServiceConfig.getFilterChainBuilder()
).
Please note that the returned object is not a real IoFilterChain
but a DefaultIoFilterChainBuilder
. Modifying the returned builder
won't affect the existing IoSession
s at all, because
IoFilterChainBuilder
s affect only newly created IoSession
s.getFilterChain
在接口中 IoServiceConfig
public ThreadModel getThreadModel()
IoServiceConfig
ThreadModel
of the IoService
.
The default value is a ExecutorThreadModel
() whose service name is
'AnonymousIoService' and which has 16 maximum active threads.
It is strongly recommended to set a new ExecutorThreadModel
by calling
ExecutorThreadModel.getInstance(String)
.getThreadModel
在接口中 IoServiceConfig
public void setThreadModel(ThreadModel threadModel)
IoServiceConfig
ThreadModel
of the IoService
.
If you specify null, this property will be set to the
default value.
The default value is an ExecutorThreadModel
whose service name is
'AnonymousIoService' with 16 threads.
It is strongly recommended to set a new ExecutorThreadModel
by calling
ExecutorThreadModel.getInstance(String)
.setThreadModel
在接口中 IoServiceConfig
public java.lang.Object clone()
IoServiceConfig
clone
在接口中 IoServiceConfig
clone
在类中 java.lang.Object