Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 41218 invoked from network); 18 Oct 2005 07:24:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2005 07:24:45 -0000 Received: (qmail 57757 invoked by uid 500); 18 Oct 2005 07:24:45 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 57590 invoked by uid 500); 18 Oct 2005 07:24:44 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 57567 invoked by uid 99); 18 Oct 2005 07:24:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2005 00:24:44 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.74.65.221] (HELO linux.easyhost.be) (193.74.65.221) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2005 00:24:44 -0700 Received: (qmail 23160 invoked from network); 18 Oct 2005 09:24:18 +0200 Received: from localhost (127.0.0.1) by localhost with SMTP; 18 Oct 2005 09:24:18 +0200 Received: from 195.0.96.5 ([195.0.96.5]) by webmail.daune-consult.com (Horde MIME library) with HTTP; Tue, 18 Oct 2005 09:24:18 +0200 Message-ID: <20051018092418.utnbv6n8fynkookg@webmail.daune-consult.com> Date: Tue, 18 Oct 2005 09:24:18 +0200 From: daune.jf@daune-consult.com To: dev@directory.apache.org Subject: Re: BaseThreadPool question References: <20051011100914.2jn8f2yb982o0s88@webmail.daune-consult.com> <768dcb2e0510161726u1ccae7bq@mail.gmail.com> <768dcb2e0510170139k64d10ebdj@mail.gmail.com> <768dcb2e0510170305s45df08f8v@mail.gmail.com> <20051017150150.db0z8pv6wv0gggks@webmail.daune-consult.com> <768dcb2e0510170808t6cc0be48j@mail.gmail.com> <4353D6F5.9000302@daune-consult.com> In-Reply-To: <4353D6F5.9000302@daune-consult.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jean-Fran=E7ois Daune a =E9crit : > Trustin Lee wrote: > >> Hi J-F, >> >> 2005/10/17, daune.jf@daune-consult.com >> > >: >> >> I would like to suggest some additional changes (cf. attachment) >> >> This allows modifying the SessionBuffer selection criteria. I >> modifies BastThreadPool as you requested. Additionally, I replaces >> BlockingSet with BlockingQueue because it is more efficient in usual >> case. Please override BaseThreadPool.fetchSessionBuffer(). >> >> Cheers, >> Trustin >> -- >> what we call human nature is actually human habit >> -- >> http://gleamynode.net/ > > Thanks a lot for responsiveness !! > > J-F The fact that fetchSessionBuffer takes a Queue prevents easy manipulation of the collection. There is no way to remove an element at index i, other than popping all elements before and pushing them back (actually a queue implies FIFO strategy) J-F