[ http://issues.apache.org/jira/browse/DIRMINA-190?page=comments#action_12370061 ]
Trustin Lee commented on DIRMINA-190: ------------------------------------- More change: http://svn.apache.org/viewcvs?rev=385269&view=rev > ThreadModel interface which encapsulates ThreadPoolFilter composition. > ---------------------------------------------------------------------- > > Key: DIRMINA-190 > URL: http://issues.apache.org/jira/browse/DIRMINA-190 > Project: Directory MINA > Type: New Feature > Reporter: Trustin Lee > Assignee: Trustin Lee > Priority: Minor > Fix For: 0.9.3 > > Since ServiceRegistry has been removed from the core API, users had to add > ThreadPoolFilters manually. It would be great if there's a way to configure > ThreadPoolFilters more easily. My suggestion is add a ThreadModel interface. > Here's an example: > acceptor.getConfig().setThreadModel( ThreadModel.MANUAL ); // Single thread > mode > acceptor.getConfig().setThreadModel( new PooledThreadModel( "LDAP", 16 ) ); > // One thread pool with max. 16 threads. > The default property will be: new PooledThreadModel( "AnonymousIoService", 16 > ). This means you have to change your code to retain the previous thread > pool composition: > * call setThreadModel( ThreadModel.MANUAL ), > * or remove your code that adds a thread pool filter. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
