mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: Fixing PooledThreadModel (Was: Re: AnonymousIoService thread)
Date Mon, 03 Jul 2006 15:15:24 GMT
On Jul 3, 2006, at 4:31 AM, Trustin Lee wrote:
> For now, there's a strong 1-to-1 relationship between  
> PooledThreadModel and
> thus it causes excessive creation of thread pools.  I think at  
> least the
> PooledThreadModel instances with the same service name should share  
> the same
> ThreadPoolFilter insstance. What do you think?
>
> If you agree with me, there are two choices:
>
> * Provide a static factory method for PooledThreadModel instead of
> constructors.
> * Retain the constructors, but share the filters using a static map.

Static factory method.

-pete

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




Mime
View raw message