966967968969970971972973974975976
Waiter w = new Waiter(this, timeout); while (w.hasTime() && state != CLOSED && !isDone()) { checkFailoverRequired("Operation was interrupted by failover."); log.debug("%s waiting for result: %s", Session.this, this); w.await(); } } if (isDone()) {
329330331332333334335336337338339
synchronized (incoming) { Waiter w = new Waiter(incoming, 30000); while (w.hasTime() && incoming.size() < 4) { w.await(); } assertEquals(4, incoming.size()); assertEquals("ECHO 1", incoming.get(0).getBodyString()); assertEquals(0, incoming.get(0).getId());
172173174175176177178179180181182
send(new ProtocolHeader(1, 0, 10)); Waiter w = new Waiter(lock, timeout); while (w.hasTime() && state == OPENING && error == null) { w.await(); } if (error != null) { ConnectionException t = error;
448449450451452453454455456457458
state = CLOSING; connectionClose(ConnectionCloseCode.NORMAL, null); Waiter w = new Waiter(lock, timeout); while (w.hasTime() && state == CLOSING && error == null) { w.await(); } if (error != null) { close();
477478479480481482483484485486487
{ sender.close(); w = new Waiter(lock, timeout); while (w.hasTime() && sender != null && error == null) { w.await(); } if (error != null) { throw new ConnectionException(error);
426427428429430431432433434435436
if (state != OPEN && state != CLOSED) { Waiter w = new Waiter(commands, timeout); while (w.hasTime() && (state != OPEN && state != CLOSED)) { w.await(); } } switch (state) {
471472473474475476477478479480481
{ e.rethrow(); } } } w.await(); } } if (isFull(next)) {
567568569570571572573574575576577
Waiter w = new Waiter(commands, timeout); while (w.hasTime() && state != CLOSED && lt(maxComplete, point)) { log.debug("%s waiting for[%d]: %d, %s", this, point, maxComplete, commands); w.await(); } if (lt(maxComplete, point)) { if (state == CLOSED)
744745746747748749750751752753754
sessionRequestTimeout(0); sessionDetach(name.getBytes()); Waiter w = new Waiter(commands, timeout); while (w.hasTime() && state != CLOSED) { w.await(); } if (state != CLOSED) { throw new SessionException("close() timed out");
672673674675676677678679680681682
{ Waiter w = new Waiter(this, timeout); while (w.hasTime() && state != CLOSED && !isDone()) { log.debug("%s waiting for result: %s", Session.this, this); w.await(); } } if (isDone()) {