// First, notify all our dependents that we are shutting down.
// This clears isOpen(), so no further work from the
// application side will be accepted, and any inbound commands
// will be discarded (unless they're channel.close-oks).
Channel.Close reason = new Channel.Close(closeCode, closeMessage, 0, 0);
ShutdownSignalException signal = new ShutdownSignalException(false,
initiatedByApplication,
reason,
this);
if (cause != null) {
signal.initCause(cause);
}
BlockingRpcContinuation<AMQCommand> k = new SimpleBlockingRpcContinuation();
boolean notify = false;
try {