583584585586587588589590591592593
state = CLOSING; connectionClose(replyCode, replyText, _options); Waiter w = new Waiter(lock, timeout); while (w.hasTime() && state == CLOSING && error == null) { w.await(); } if (error != null) { close(replyCode, replyText, _options);
612613614615616617618619620621622
{ sender.close(); w = new Waiter(lock, timeout); while (w.hasTime() && sender != null && error == null) { w.await(); } if (error != null) { throw new ConnectionException(error);
781782783784785786787788789790791
{ 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()) {
179180181182183184185186187188189
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;
455456457458459460461462463464465
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();
484485486487488489490491492493494
517518519520521522523524525526527
if (!current.equals(resumer)) { Waiter w = new Waiter(commands, timeout); while (w.hasTime() && (state != OPEN && state != CLOSED)) { w.await(); } } } switch (state)
579580581582583584585586587588589
{ e.rethrow(); } } } w.await(); } } if (isFull(next)) {
676677678679680681682683684685686
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)
853854855856857858859860861862863
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");