mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: Thread model configuration
Date Tue, 07 Mar 2006 15:29:05 GMT
On Mar 7, 2006, at 10:21 AM, Trustin Lee wrote:
> I've been thinking of adding a thread model interface so users can  
> configure
> a thread model easily by calling a setter of IoServiceConfig.  For  
> example:
>
> acceptor.getConfig().setThreadModel( ThreadModel.SINGLE );
>
> acceptor.getConfig().setThreadModel( new PooledThreadModel( ... ) );
>
> I think this is much more intuitive than adding a thread pool  
> filter and
> managing life cycle of it.  Of course, it will be implemented as a  
> filter
> internally.

sounds good!
-pete

-- 
proyal@apache.org - http://fotap.org/~osi



Mime
View raw message