commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandy McArthur <>
Subject Re: [collections] BoundedBuffer
Date Fri, 11 Nov 2005 23:11:52 GMT
On 11/11/05, James Carman <> wrote:
> I'm working on the BoundedBuffer implementation right now.  But, I've got a
> question for you folks.  What do you think a reasonable default would be for
> the timeout value?  Should it wait forever by default (like TimeoutBuffer
> does) or should it immediately throw a BufferOverflowException?

Unless the class is named something like WaitBuffer then it should
fail immediately by default. A programmer who isn't paying attention
would be confused why their program just seems to hang if the default
behavior was to block for a while.

Sandy McArthur

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message