844845846847848849850851852853854
boolean woken; woken = _driver.doWait(remaining); processActive(); if (woken) { throw new InterruptException(); } now = System.currentTimeMillis(); } return done;
316317318319320321322323324325326
{ throw new TimeoutException(errorMessage); } else if (errorCode == Proton.PN_INTR) { throw new InterruptException(); } else { throw new MessengerException(errorMessage); }
288289290291292293294295296297298
614615616617618619620621622623624
long remaining = deadline - now; if (done || (timeout >= 0 && remaining < 0)) break; boolean woken = _driver.doWait(remaining); processActive(); if (woken) { throw new InterruptException(); } if (timeout >= 0) { now = System.currentTimeMillis(); } }
892893894895896897898899900901902