FYI: FiniteQueue blocking dequeue (all 3 methods) don't respect timeout

Quartz <[email protected]> Thu, 16 Oct 2003 15:44:28 -0700 (PDT)
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
FiniteQueue timed out blocking dequeue (all 3 methods) does not respect prescribed timeout:
(oh, that's a shocker...damn FiniteQueue)


In all blocking calls (timed out),
the the timeout does not decrease.

//if (timeout_millis == -1)
//    blocker.wait();
//else
//    blocker.wait(timeout_millis);


Should be like this:

if (timeout_millis == -1)
	blocker.wait();
else {
	long delay = goal_time -System.currentTimeMillis();
	if(delay>0)
		blocker.wait(delay);
}



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php