List of usage examples for com.rabbitmq.client.impl AMQCommand transmit
public void transmit(AMQChannel channel) throws IOException
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); } }