Example usage for com.rabbitmq.client.impl AMQCommand transmit

List of usage examples for com.rabbitmq.client.impl AMQCommand transmit

Introduction

In this page you can find the example usage for com.rabbitmq.client.impl AMQCommand transmit.

Prototype

public void transmit(AMQChannel channel) throws IOException 

Source Link

Document

Sends this command down the named channel on the channel's connection, possibly in multiple frames.

Usage

From source file:de.htwk_leipzig.bis.connection.handshake.clientRewrite.AMQChannel.java

License:Mozilla Public License

public void quiescingTransmit(AMQCommand c) throws IOException {
    synchronized (_channelMutex) {
        if (c.getMethod().hasContent()) {
            while (_blockContent) {
                try {
                    _channelMutex.wait();
                } catch (InterruptedException e) {
                }//from  w  ww.j  a va2 s. co m

                // This is to catch a situation when the thread wakes up
                // during
                // shutdown. Currently, no command that has content is
                // allowed
                // to send anything in a closing state.
                ensureIsOpen();
            }
        }
        c.transmit(this);
    }
}