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:43:31 GMT
Trustin,

I have some questions for you:

- Is there a reason to use a Queue instead of (the less restrictive) List?
- If so, is there a reason to use a custom Queue instead of those from Java?

J-F

> Yes you're right. But we can modify org.apache.mina.util.Queue to implement
> java.util.List .
>
> 2005/10/18, daune.jf@daune-consult.com <daune.jf@daune-consult.com>:
>>
>> 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)
>




Mime
View raw message