On 11/11/05, James Carman <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to