Re: [collections] New Buffer Wrapper Classes...

2005-11-10 Thread Stephen Colebourne
These sound like good ideas. Not sure why you need two TimeoutWrappers though, as you are only trapping the remove() aren't you? Stephen --- James Carman [EMAIL PROTECTED] wrote: Based on my response to Sandy McArthur about using Buffers to implements Commons Pool, I started digging around

RE: [collections] New Buffer Wrapper Classes...

2005-11-10 Thread James Carman
No, you'd need to override add also, so you'd know when to fire notify()/notifyAll(). Correct? -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 7:40 AM To: Jakarta Commons Developers List Subject: Re: [collections] New Buffer

RE: [collections] New Buffer Wrapper Classes...

2005-11-10 Thread James Carman
: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 7:40 AM To: Jakarta Commons Developers List Subject: Re: [collections] New Buffer Wrapper Classes... These sound like good ideas. Not sure why you need two TimeoutWrappers though, as you are only trapping the remove

[collections] New Buffer Wrapper Classes...

2005-11-09 Thread James Carman
Based on my response to Sandy McArthur about using Buffers to implements Commons Pool, I started digging around the API. I came up with a couple of ideas: 1. A BoundedBuffer wrapper/decorator class, which basically enforces a maximum size of the enclosed buffer. 2. A TimeoutBuffer