[ http://issues.apache.org/jira/browse/DIRMINA-190?page=all ]
     
Trustin Lee closed DIRMINA-190:
-------------------------------

    Resolution: Fixed

Done:

http://svn.apache.org/viewcvs?rev=385262&view=rev
http://svn.apache.org/viewcvs?rev=385263&view=rev
http://svn.apache.org/viewcvs?rev=385266&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

Reply via email to