|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoServiceConfig
A configuration which is used to configure IoService
.
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this configuration. |
DefaultIoFilterChainBuilder |
getFilterChain()
A shortcut for ( ( DefaultIoFilterChainBuilder ) getFilterChainBuilder() ). |
IoFilterChainBuilder |
getFilterChainBuilder()
Returns the IoFilterChainBuilder which will modify the
IoFilterChain of all IoSession s which is created
with this configuration. |
IoSessionConfig |
getSessionConfig()
Resturns the default configuration of the new IoSession s. |
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 . |
Method Detail |
---|
IoSessionConfig getSessionConfig()
IoSession
s.
IoFilterChainBuilder getFilterChainBuilder()
IoFilterChainBuilder
which will modify the
IoFilterChain
of all IoSession
s which is created
with this configuration.
The default value is an empty DefaultIoFilterChainBuilder
.
void setFilterChainBuilder(IoFilterChainBuilder builder)
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
.
DefaultIoFilterChainBuilder getFilterChain()
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.
java.lang.IllegalStateException
- if the current IoFilterChainBuilder
is
not a DefaultIoFilterChainBuilder
ThreadModel getThreadModel()
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)
.
void setThreadModel(ThreadModel threadModel)
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)
.
java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |