On 10/6/06, Jonathan Oexner <[EMAIL PROTECTED]> wrote:
What is the expected behavior of TimingOutCallback.waitForResponse() if the response has already arrived?
If the response arrives, then either of the synchronized methods handleResult or handleError is entered. The variable responseSeen is set to true and notify() is called. Finally, the synchronized method is left. At that point the method wait(timeout) is left. (Note, that this cannot happen while handleError or handleResult is running, because waitResponse is synchronized as well.) A TimeoutException is not thrown, because responseSeen is true.
From looking at the code, it seems like the wait thread would wait for the full timeout
No, because notify() is called.
P.P.S.: Yes, I'm familiar with this thing you call a "diff". I'm also quite lazy.
Yes, I'm familiar with this thing you call "replying to other peoples questions". I'm also quite lazy. Jochen -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]