613614615616617618619620621622623
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);
642643644645646647648649650651652
{ sender.close(); w = new Waiter(lock, timeout); while (w.hasTime() && sender != null && error == null) { w.await(); } if (error != null) { throw new ConnectionException(error);
133134135136137138139140141142143
synchronized (received) { Waiter w = new Waiter(received, 30000); while (received.size() < count && w.hasTime()) { w.await(); } } } void check() throws JMSException
245246247248249250251252253254255
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;
320321322323324325326327328329330
synchronized (lock) { Waiter w = new Waiter(lock, timeout); while (w.hasTime() && state != OPEN && error == null) { w.await(); } if (state != OPEN) { throw new ConnectionException("Timed out waiting for connection to be ready. Current state is :" + state);
589590591592593594595596597598599
618619620621622623624625626627628
596597598599600601602603604605606
if (!current.equals(resumer)) { Waiter w = new Waiter(commands, timeout); while (w.hasTime() && (state != OPEN && state != CLOSED)) { w.await(); } } } switch (state)
664665666667668669670671672673674
{ e.rethrow(); } } } w.await(); } } if (state == CLOSED) {
784785786787788789790791792793794
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)