mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Webb (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRMINA-364) Include Runtime.getRuntime().availableProcessors() into the constructors of SocketAcceptor
Date Mon, 09 Jul 2007 15:20:04 GMT

     [ https://issues.apache.org/jira/browse/DIRMINA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Webb resolved DIRMINA-364.
-------------------------------

    Resolution: Fixed

I have updated the constructor and added javadoc information.



> Include Runtime.getRuntime().availableProcessors() into the constructors of SocketAcceptor
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-364
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-364
>             Project: MINA
>          Issue Type: Improvement
>          Components: Transport
>    Affects Versions: 2.0.0-M1
>            Reporter: im-james
>            Priority: Trivial
>             Fix For: 2.0.0-M1
>
>
> I propose to change the default constructor of SocketAcceptor for this :
> public SocketAcceptor() {
>         this(Runtime.getRuntime().availableProcessors(), new NewThreadExecutor());
> }
> And to add a new constructor:
> public SocketAcceptor(Executor executor) {
>         this(Runtime.getRuntime().availableProcessors(), executor);
> }
> The objective is to maximize the performance of MINA in the usual cases.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message