| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface IoServiceConfigextends CloneableIoService.
Method Summary | |
Object |
|
DefaultIoFilterChainBuilder |
|
IoFilterChainBuilder |
|
IoSessionConfig |
|
ThreadModel |
|
void |
|
void |
|
public Object clone()
Returns a deep clone of this configuration.
public DefaultIoFilterChainBuilder getFilterChain()
A shortcut for ( ( DefaultIoFilterChainBuilder )getFilterChainBuilder()). Please note that the returned object is not a realIoFilterChainbut aDefaultIoFilterChainBuilder. Modifying the returned builder won't affect the existingIoSessions at all, becauseIoFilterChainBuilders affect only newly createdIoSessions.
public IoFilterChainBuilder getFilterChainBuilder()
Returns theIoFilterChainBuilderwhich will modify theIoFilterChainof allIoSessions which is created with this configuration. The default value is an emptyDefaultIoFilterChainBuilder.
public IoSessionConfig getSessionConfig()
Resturns the default configuration of the newIoSessions.
public ThreadModel getThreadModel()
Returns the defaultThreadModelof theIoService. The default value is aExecutorThreadModel() whose service name is 'AnonymousIoService' and which has 16 maximum active threads. It is strongly recommended to set a newExecutorThreadModelby callingExecutorThreadModel.getInstance(String).
public void setFilterChainBuilder(IoFilterChainBuilder builder)
Sets theIoFilterChainBuilderwhich will modify theIoFilterChainof allIoSessions which is created with this configuration. If you specify null this property will be set to an emptyDefaultIoFilterChainBuilder.
public void setThreadModel(ThreadModel threadModel)
Sets the defaultThreadModelof theIoService. If you specify null, this property will be set to the default value. The default value is anExecutorThreadModelwhose service name is 'AnonymousIoService' with 16 threads. It is strongly recommended to set a newExecutorThreadModelby callingExecutorThreadModel.getInstance(String).