On Jan 27, 2007, at 7:02 PM, Trustin Lee wrote:
For now, whenever default constructor of ExecutorFilter is called, new
instance of Executor is created. This often confuses beginners because they see inifinitely increasing number of threads. I admit that I made a mistake
due to my lack of knowledge on java.util.concurrent package. (What a
lazy...! :) Using Executors.newCachedThreadPool() could fix this problem
very easily.

I'd like to apply this change to both 1.x and 2.x branch because it will
reduce users' misinterpretation significaly.  WDYT?

You mean replacing:

new ThreadPoolExecutor(16, 16, 60, TimeUnit.SECONDS, new LinkedBlockingQueue() )

?

(if so, that's roughly equivalent with what newCachedThreadPool does, just different numbers, which makes me wonder why :)

-pete

--
[EMAIL PROTECTED] - http://fotap.org/~osi



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to