directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daune...@daune-consult.com
Subject Re: BaseThreadPool question
Date Tue, 18 Oct 2005 07:24:18 GMT
Jean-François Daune <daune.jf@daune-consult.com> a écrit :

> Trustin Lee wrote:
>
>> Hi J-F,
>>
>> 2005/10/17, daune.jf@daune-consult.com 
>> <mailto:daune.jf@daune-consult.com> <daune.jf@daune-consult.com 
>> <mailto: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




Mime
View raw message