|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.mina.common.support.BaseIoServiceConfig
public abstract class BaseIoServiceConfig
A base implementation of IoServiceConfig.
| Constructor Summary | |
|---|---|
BaseIoServiceConfig()
|
|
| Method Summary | |
|---|---|
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 IoSessions 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 IoSessions which is created
with this configuration. |
void |
setThreadModel(ThreadModel threadModel)
Sets the default ThreadModel of the IoService. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.littleshoot.mina.common.IoServiceConfig |
|---|
getSessionConfig |
| Constructor Detail |
|---|
public BaseIoServiceConfig()
| Method Detail |
|---|
public IoFilterChainBuilder getFilterChainBuilder()
IoServiceConfigIoFilterChainBuilder which will modify the
IoFilterChain of all IoSessions which is created
with this configuration.
The default value is an empty DefaultIoFilterChainBuilder.
getFilterChainBuilder in interface IoServiceConfigpublic void setFilterChainBuilder(IoFilterChainBuilder builder)
IoServiceConfigIoFilterChainBuilder which will modify the
IoFilterChain of all IoSessions which is created
with this configuration.
If you specify null this property will be set to
an empty DefaultIoFilterChainBuilder.
setFilterChainBuilder in interface IoServiceConfigpublic DefaultIoFilterChainBuilder getFilterChain()
IoServiceConfigIoServiceConfig.getFilterChainBuilder() ).
Please note that the returned object is not a real IoFilterChain
but a DefaultIoFilterChainBuilder. Modifying the returned builder
won't affect the existing IoSessions at all, because
IoFilterChainBuilders affect only newly created IoSessions.
getFilterChain in interface IoServiceConfigpublic ThreadModel getThreadModel()
IoServiceConfigThreadModel 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 in interface IoServiceConfigpublic void setThreadModel(ThreadModel threadModel)
IoServiceConfigThreadModel 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 in interface IoServiceConfigpublic Object clone()
IoServiceConfig
clone in interface IoServiceConfigclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||