EVOLUTION-MANAGER
Edit File: Channel.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_91) on Thu Jan 14 10:04:50 GMT 2016 --> <title>Channel</title> <meta name="date" content="2016-01-14"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Channel"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../com/rabbitmq/client/BlockedListener.html" title="interface in com.rabbitmq.client"><span class="strong">Prev Class</span></a></li> <li><a href="../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?com/rabbitmq/client/Channel.html" target="_top">Frames</a></li> <li><a href="Channel.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.rabbitmq.client</div> <h2 title="Interface Channel" class="title">Interface Channel</h2> </div> <div class="contentContainer"> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Superinterfaces:</dt> <dd><a href="../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</a></dd> </dl> <dl> <dt>All Known Implementing Classes:</dt> <dd><a href="../../../com/rabbitmq/client/impl/recovery/AutorecoveringChannel.html" title="class in com.rabbitmq.client.impl.recovery">AutorecoveringChannel</a>, <a href="../../../com/rabbitmq/client/impl/ChannelN.html" title="class in com.rabbitmq.client.impl">ChannelN</a>, <a href="../../../com/rabbitmq/client/impl/recovery/RecoveryAwareChannelN.html" title="class in com.rabbitmq.client.impl.recovery">RecoveryAwareChannelN</a></dd> </dl> <hr> <br> <pre>public interface <span class="strong">Channel</span> extends <a href="../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</a></pre> <div class="block">Interface to a channel. All non-deprecated methods of this interface are part of the public API. <h2>Tutorials</h2> <a href="http://www.rabbitmq.com/getstarted.html">RabbitMQ tutorials</a> demonstrate how key methods of this interface are used. <h2>User Guide</h2> See <a href="http://www.rabbitmq.com/api-guide.html">Java Client User Guide</a>. <h2>Concurrency Considerations</h2> <p> <a href="../../../com/rabbitmq/client/Channel.html" title="interface in com.rabbitmq.client"><code>Channel</code></a> instances must not be shared between threads. Applications should prefer using a <a href="../../../com/rabbitmq/client/Channel.html" title="interface in com.rabbitmq.client"><code>Channel</code></a> per thread instead of sharing the same <a href="../../../com/rabbitmq/client/Channel.html" title="interface in com.rabbitmq.client"><code>Channel</code></a> across multiple threads. While some operations on channels are safe to invoke concurrently, some are not and will result in incorrect frame interleaving on the wire. Sharing channels between threads will also interfere with <a href="http://www.rabbitmq.com/confirms.html">Publisher Confirms</a>. As such, applications need to use a <a href="../../../com/rabbitmq/client/Channel.html" title="interface in com.rabbitmq.client"><code>Channel</code></a> per thread. </p></div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/getstarted.html">RabbitMQ tutorials</a>, <a href="http://www.rabbitmq.com/api-guide.html">RabbitMQ Java Client User Guide</a></dd></dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#abort()">abort</a></strong>()</code> <div class="block">Abort this channel with the <a href="../../../com/rabbitmq/client/AMQP.html#REPLY_SUCCESS"><code>AMQP.REPLY_SUCCESS</code></a> close code and message 'OK'.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#abort(int,%20java.lang.String)">abort</a></strong>(int closeCode, java.lang.String closeMessage)</code> <div class="block">Abort this channel.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#addConfirmListener(com.rabbitmq.client.ConfirmListener)">addConfirmListener</a></strong>(<a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client">ConfirmListener</a> listener)</code> <div class="block">Add a <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#addFlowListener(com.rabbitmq.client.FlowListener)">addFlowListener</a></strong>(<a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client">FlowListener</a> listener)</code> <div class="block"><strong>Deprecated.</strong> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#addReturnListener(com.rabbitmq.client.ReturnListener)">addReturnListener</a></strong>(<a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client">ReturnListener</a> listener)</code> <div class="block">Add a <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#asyncRpc(com.rabbitmq.client.Method)">asyncRpc</a></strong>(<a href="../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</a> method)</code> <div class="block">Asynchronously send a method over this channel.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicAck(long,%20boolean)">basicAck</a></strong>(long deliveryTag, boolean multiple)</code> <div class="block">Acknowledge one or several received messages.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicCancel(java.lang.String)">basicCancel</a></strong>(java.lang.String consumerTag)</code> <div class="block">Cancel a consumer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20com.rabbitmq.client.Consumer)">basicConsume</a></strong>(java.lang.String queue, boolean autoAck, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback)</code> <div class="block">Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)">basicConsume</a></strong>(java.lang.String queue, boolean autoAck, java.util.Map<java.lang.String,java.lang.Object> arguments, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback)</code> <div class="block">Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag and specified arguments.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)">basicConsume</a></strong>(java.lang.String queue, boolean autoAck, java.lang.String consumerTag, boolean noLocal, boolean exclusive, java.util.Map<java.lang.String,java.lang.Object> arguments, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback)</code> <div class="block">Start a consumer.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20com.rabbitmq.client.Consumer)">basicConsume</a></strong>(java.lang.String queue, boolean autoAck, java.lang.String consumerTag, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback)</code> <div class="block">Start a non-nolocal, non-exclusive consumer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20com.rabbitmq.client.Consumer)">basicConsume</a></strong>(java.lang.String queue, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback)</code> <div class="block">Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/GetResponse.html" title="class in com.rabbitmq.client">GetResponse</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicGet(java.lang.String,%20boolean)">basicGet</a></strong>(java.lang.String queue, boolean autoAck)</code> <div class="block">Retrieve a message from a queue using <a href="../../../com/rabbitmq/client/AMQP.Basic.Get.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Get</code></a></div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicNack(long,%20boolean,%20boolean)">basicNack</a></strong>(long deliveryTag, boolean multiple, boolean requeue)</code> <div class="block">Reject one or several received messages.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicPublish(java.lang.String,%20java.lang.String,%20com.rabbitmq.client.AMQP.BasicProperties,%20byte[])">basicPublish</a></strong>(java.lang.String exchange, java.lang.String routingKey, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body)</code> <div class="block">Publish a message.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicPublish(java.lang.String,%20java.lang.String,%20boolean,%20com.rabbitmq.client.AMQP.BasicProperties,%20byte[])">basicPublish</a></strong>(java.lang.String exchange, java.lang.String routingKey, boolean mandatory, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body)</code> <div class="block">Publish a message.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicPublish(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20com.rabbitmq.client.AMQP.BasicProperties,%20byte[])">basicPublish</a></strong>(java.lang.String exchange, java.lang.String routingKey, boolean mandatory, boolean immediate, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body)</code> <div class="block">Publish a message.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicQos(int)">basicQos</a></strong>(int prefetchCount)</code> <div class="block">Request a specific prefetchCount "quality of service" settings for this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicQos(int,%20boolean)">basicQos</a></strong>(int prefetchCount, boolean global)</code> <div class="block">Request a specific prefetchCount "quality of service" settings for this channel.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicQos(int,%20int,%20boolean)">basicQos</a></strong>(int prefetchSize, int prefetchCount, boolean global)</code> <div class="block">Request specific "quality of service" settings.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Basic.RecoverOk.html" title="interface in com.rabbitmq.client">AMQP.Basic.RecoverOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicRecover()">basicRecover</a></strong>()</code> <div class="block">Ask the broker to resend unacknowledged messages.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Basic.RecoverOk.html" title="interface in com.rabbitmq.client">AMQP.Basic.RecoverOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicRecover(boolean)">basicRecover</a></strong>(boolean requeue)</code> <div class="block">Ask the broker to resend unacknowledged messages.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#basicReject(long,%20boolean)">basicReject</a></strong>(long deliveryTag, boolean requeue)</code> <div class="block">Reject a message.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#clearConfirmListeners()">clearConfirmListeners</a></strong>()</code> <div class="block">Remove all <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>s.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#clearFlowListeners()">clearFlowListeners</a></strong>()</code> <div class="block"><strong>Deprecated.</strong> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#clearReturnListeners()">clearReturnListeners</a></strong>()</code> <div class="block">Remove all <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>s.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#close()">close</a></strong>()</code> <div class="block">Close this channel with the <a href="../../../com/rabbitmq/client/AMQP.html#REPLY_SUCCESS"><code>AMQP.REPLY_SUCCESS</code></a> close code and message 'OK'.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#close(int,%20java.lang.String)">close</a></strong>(int closeCode, java.lang.String closeMessage)</code> <div class="block">Close this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Confirm.SelectOk.html" title="interface in com.rabbitmq.client">AMQP.Confirm.SelectOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#confirmSelect()">confirmSelect</a></strong>()</code> <div class="block">Enables publisher acknowledgements on this channel.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#consumerCount(java.lang.String)">consumerCount</a></strong>(java.lang.String queue)</code> <div class="block">Returns the number of consumers on a queue.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.BindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeBind(java.lang.String,%20java.lang.String,%20java.lang.String)">exchangeBind</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey)</code> <div class="block">Bind an exchange to an exchange, with no extra arguments.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.BindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeBind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">exchangeBind</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Bind an exchange to an exchange.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeBindNoWait(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">exchangeBindNoWait</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeBind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)"><code>exchangeBind(String, String, String, java.util.Map)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String)">exchangeDeclare</a></strong>(java.lang.String exchange, java.lang.String type)</code> <div class="block">Actively declare a non-autodelete, non-durable exchange with no extra arguments</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String,%20boolean)">exchangeDeclare</a></strong>(java.lang.String exchange, java.lang.String type, boolean durable)</code> <div class="block">Actively declare a non-autodelete exchange with no extra arguments</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)">exchangeDeclare</a></strong>(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, boolean internal, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Declare an exchange, via an interface that allows the complete set of arguments.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map)">exchangeDeclare</a></strong>(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Declare an exchange.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclareNoWait(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)">exchangeDeclareNoWait</a></strong>(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, boolean internal, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map)"><code>exchangeDeclare(String, String, boolean, boolean, java.util.Map)</code></a> but sets nowait parameter to true and returns nothing (as there will be no response from the server).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclarePassive(java.lang.String)">exchangeDeclarePassive</a></strong>(java.lang.String name)</code> <div class="block">Declare an exchange passively; that is, check if the named exchange exists.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeleteOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDelete(java.lang.String)">exchangeDelete</a></strong>(java.lang.String exchange)</code> <div class="block">Delete an exchange, without regard for whether it is in use or not</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeleteOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDelete(java.lang.String,%20boolean)">exchangeDelete</a></strong>(java.lang.String exchange, boolean ifUnused)</code> <div class="block">Delete an exchange</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeDeleteNoWait(java.lang.String,%20boolean)">exchangeDeleteNoWait</a></strong>(java.lang.String exchange, boolean ifUnused)</code> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeDelete(java.lang.String,%20boolean)"><code>exchangeDelete(String, boolean)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.UnbindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeUnbind(java.lang.String,%20java.lang.String,%20java.lang.String)">exchangeUnbind</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey)</code> <div class="block">Unbind an exchange from an exchange, with no extra arguments.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Exchange.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.UnbindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeUnbind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">exchangeUnbind</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Unbind an exchange from an exchange.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#exchangeUnbindNoWait(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">exchangeUnbindNoWait</a></strong>(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Same as <a href="../../../com/rabbitmq/client/Channel.html#exchangeUnbind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)"><code>exchangeUnbind(String, String, String, java.util.Map)</code></a> but sets no-wait parameter to true and returns nothing (as there will be no response from the server).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#flowBlocked()">flowBlocked</a></strong>()</code> <div class="block"><strong>Deprecated.</strong> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#getChannelNumber()">getChannelNumber</a></strong>()</code> <div class="block">Retrieve this channel's channel number.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#getConnection()">getConnection</a></strong>()</code> <div class="block">Retrieve the connection which carries this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#getDefaultConsumer()">getDefaultConsumer</a></strong>()</code> <div class="block">Get the current default consumer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#getNextPublishSeqNo()">getNextPublishSeqNo</a></strong>()</code> <div class="block">When in confirm mode, returns the sequence number of the next message to be published.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#messageCount(java.lang.String)">messageCount</a></strong>(java.lang.String queue)</code> <div class="block">Returns the number of messages in a queue ready to be delivered to consumers.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.BindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueBind(java.lang.String,%20java.lang.String,%20java.lang.String)">queueBind</a></strong>(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey)</code> <div class="block">Bind a queue to an exchange, with no extra arguments.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.BindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueBind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">queueBind</a></strong>(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Bind a queue to an exchange.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueBindNoWait(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">queueBindNoWait</a></strong>(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Same as <a href="../../../com/rabbitmq/client/Channel.html#queueDeclare(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)"><code>queueDeclare(String, boolean, boolean, boolean, java.util.Map)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDeclare()">queueDeclare</a></strong>()</code> <div class="block">Actively declare a server-named exclusive, autodelete, non-durable queue.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDeclare(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)">queueDeclare</a></strong>(java.lang.String queue, boolean durable, boolean exclusive, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Declare a queue</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDeclareNoWait(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)">queueDeclareNoWait</a></strong>(java.lang.String queue, boolean durable, boolean exclusive, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#queueDeclare(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)"><code>queueDeclare(String, boolean, boolean, boolean, java.util.Map)</code></a> but sets nowait flag to true and returns no result (as there will be no response from the server).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDeclarePassive(java.lang.String)">queueDeclarePassive</a></strong>(java.lang.String queue)</code> <div class="block">Declare a queue passively; i.e., check if it exists.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeleteOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDelete(java.lang.String)">queueDelete</a></strong>(java.lang.String queue)</code> <div class="block">Delete a queue, without regard for whether it is in use or has messages on it</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeleteOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDelete(java.lang.String,%20boolean,%20boolean)">queueDelete</a></strong>(java.lang.String queue, boolean ifUnused, boolean ifEmpty)</code> <div class="block">Delete a queue</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueDeleteNoWait(java.lang.String,%20boolean,%20boolean)">queueDeleteNoWait</a></strong>(java.lang.String queue, boolean ifUnused, boolean ifEmpty)</code> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#queueDelete(java.lang.String,%20boolean,%20boolean)"><code>queueDelete(String, boolean, boolean)</code></a> but sets nowait parameter to true and returns nothing (as there will be no response from the server).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.PurgeOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.PurgeOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queuePurge(java.lang.String)">queuePurge</a></strong>(java.lang.String queue)</code> <div class="block">Purges the contents of the given queue.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.UnbindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueUnbind(java.lang.String,%20java.lang.String,%20java.lang.String)">queueUnbind</a></strong>(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey)</code> <div class="block">Unbinds a queue from an exchange, with no extra arguments.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.UnbindOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#queueUnbind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)">queueUnbind</a></strong>(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)</code> <div class="block">Unbind a queue from an exchange.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#removeConfirmListener(com.rabbitmq.client.ConfirmListener)">removeConfirmListener</a></strong>(<a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client">ConfirmListener</a> listener)</code> <div class="block">Remove a <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#removeFlowListener(com.rabbitmq.client.FlowListener)">removeFlowListener</a></strong>(<a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client">FlowListener</a> listener)</code> <div class="block"><strong>Deprecated.</strong> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#removeReturnListener(com.rabbitmq.client.ReturnListener)">removeReturnListener</a></strong>(<a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client">ReturnListener</a> listener)</code> <div class="block">Remove a <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#rpc(com.rabbitmq.client.Method)">rpc</a></strong>(<a href="../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</a> method)</code> <div class="block">Synchronously send a method over this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#setDefaultConsumer(com.rabbitmq.client.Consumer)">setDefaultConsumer</a></strong>(<a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> consumer)</code> <div class="block">Set the current default consumer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Tx.CommitOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.CommitOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#txCommit()">txCommit</a></strong>()</code> <div class="block">Commits a TX transaction on this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Tx.RollbackOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.RollbackOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#txRollback()">txRollback</a></strong>()</code> <div class="block">Rolls back a TX transaction on this channel.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/AMQP.Tx.SelectOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.SelectOk</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#txSelect()">txSelect</a></strong>()</code> <div class="block">Enables TX mode on this channel.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#waitForConfirms()">waitForConfirms</a></strong>()</code> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#waitForConfirms(long)">waitForConfirms</a></strong>(long timeout)</code> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#waitForConfirmsOrDie()">waitForConfirmsOrDie</a></strong>()</code> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/Channel.html#waitForConfirmsOrDie(long)">waitForConfirmsOrDie</a></strong>(long timeout)</code> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_com.rabbitmq.client.ShutdownNotifier"> <!-- --> </a> <h3>Methods inherited from interface com.rabbitmq.client.<a href="../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</a></h3> <code><a href="../../../com/rabbitmq/client/ShutdownNotifier.html#addShutdownListener(com.rabbitmq.client.ShutdownListener)">addShutdownListener</a>, <a href="../../../com/rabbitmq/client/ShutdownNotifier.html#getCloseReason()">getCloseReason</a>, <a href="../../../com/rabbitmq/client/ShutdownNotifier.html#isOpen()">isOpen</a>, <a href="../../../com/rabbitmq/client/ShutdownNotifier.html#notifyListeners()">notifyListeners</a>, <a href="../../../com/rabbitmq/client/ShutdownNotifier.html#removeShutdownListener(com.rabbitmq.client.ShutdownListener)">removeShutdownListener</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getChannelNumber()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getChannelNumber</h4> <pre>int getChannelNumber()</pre> <div class="block">Retrieve this channel's channel number.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the channel number</dd></dl> </li> </ul> <a name="getConnection()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getConnection</h4> <pre><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a> getConnection()</pre> <div class="block">Retrieve the connection which carries this channel.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the underlying <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client"><code>Connection</code></a></dd></dl> </li> </ul> <a name="close()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>close</h4> <pre>void close() throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Close this channel with the <a href="../../../com/rabbitmq/client/AMQP.html#REPLY_SUCCESS"><code>AMQP.REPLY_SUCCESS</code></a> close code and message 'OK'.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="close(int, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>close</h4> <pre>void close(int closeCode, java.lang.String closeMessage) throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Close this channel.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>closeCode</code> - the close code (See under "Reply Codes" in the AMQP specification)</dd><dd><code>closeMessage</code> - a message indicating the reason for closing the connection</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="flowBlocked()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>flowBlocked</h4> <pre>boolean flowBlocked()</pre> <div class="block"><span class="strong">Deprecated.</span> <i></i></div> <div class="block">Deprecated, superseded by TCP back pressure.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a></dd></dl> </li> </ul> <a name="abort()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>abort</h4> <pre>void abort() throws java.io.IOException</pre> <div class="block">Abort this channel with the <a href="../../../com/rabbitmq/client/AMQP.html#REPLY_SUCCESS"><code>AMQP.REPLY_SUCCESS</code></a> close code and message 'OK'. Forces the channel to close and waits for the close operation to complete. Any encountered exceptions in the close operation are silently discarded.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="abort(int, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>abort</h4> <pre>void abort(int closeCode, java.lang.String closeMessage) throws java.io.IOException</pre> <div class="block">Abort this channel. Forces the channel to close and waits for the close operation to complete. Any encountered exceptions in the close operation are silently discarded.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="addReturnListener(com.rabbitmq.client.ReturnListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addReturnListener</h4> <pre>void addReturnListener(<a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client">ReturnListener</a> listener)</pre> <div class="block">Add a <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to add</dd></dl> </li> </ul> <a name="removeReturnListener(com.rabbitmq.client.ReturnListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>removeReturnListener</h4> <pre>boolean removeReturnListener(<a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client">ReturnListener</a> listener)</pre> <div class="block">Remove a <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to remove</dd> <dt><span class="strong">Returns:</span></dt><dd><code><b>true</b></code> if the listener was found and removed, <code><b>false</b></code> otherwise</dd></dl> </li> </ul> <a name="clearReturnListeners()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clearReturnListeners</h4> <pre>void clearReturnListeners()</pre> <div class="block">Remove all <a href="../../../com/rabbitmq/client/ReturnListener.html" title="interface in com.rabbitmq.client"><code>ReturnListener</code></a>s.</div> </li> </ul> <a name="addFlowListener(com.rabbitmq.client.FlowListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addFlowListener</h4> <pre>void addFlowListener(<a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client">FlowListener</a> listener)</pre> <div class="block"><span class="strong">Deprecated.</span> <i></i></div> <div class="block">Add a <a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client"><code>FlowListener</code></a>. Deprecated, superseded by TCP back pressure.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to add</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a></dd></dl> </li> </ul> <a name="removeFlowListener(com.rabbitmq.client.FlowListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>removeFlowListener</h4> <pre>boolean removeFlowListener(<a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client">FlowListener</a> listener)</pre> <div class="block"><span class="strong">Deprecated.</span> <i></i></div> <div class="block">Remove a <a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client"><code>FlowListener</code></a>. Deprecated, superseded by TCP back pressure.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to remove</dd> <dt><span class="strong">Returns:</span></dt><dd><code><b>true</b></code> if the listener was found and removed, <code><b>false</b></code> otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a></dd></dl> </li> </ul> <a name="clearFlowListeners()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clearFlowListeners</h4> <pre>void clearFlowListeners()</pre> <div class="block"><span class="strong">Deprecated.</span> <i></i></div> <div class="block">Remove all <a href="../../../com/rabbitmq/client/FlowListener.html" title="interface in com.rabbitmq.client"><code>FlowListener</code></a>s. Deprecated, superseded by TCP back pressure.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a></dd></dl> </li> </ul> <a name="addConfirmListener(com.rabbitmq.client.ConfirmListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addConfirmListener</h4> <pre>void addConfirmListener(<a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client">ConfirmListener</a> listener)</pre> <div class="block">Add a <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to add</dd></dl> </li> </ul> <a name="removeConfirmListener(com.rabbitmq.client.ConfirmListener)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>removeConfirmListener</h4> <pre>boolean removeConfirmListener(<a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client">ConfirmListener</a> listener)</pre> <div class="block">Remove a <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to remove</dd> <dt><span class="strong">Returns:</span></dt><dd><code><b>true</b></code> if the listener was found and removed, <code><b>false</b></code> otherwise</dd></dl> </li> </ul> <a name="clearConfirmListeners()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clearConfirmListeners</h4> <pre>void clearConfirmListeners()</pre> <div class="block">Remove all <a href="../../../com/rabbitmq/client/ConfirmListener.html" title="interface in com.rabbitmq.client"><code>ConfirmListener</code></a>s.</div> </li> </ul> <a name="getDefaultConsumer()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDefaultConsumer</h4> <pre><a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> getDefaultConsumer()</pre> <div class="block">Get the current default consumer. @see setDefaultConsumer for rationale.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>an interface to the current default consumer.</dd></dl> </li> </ul> <a name="setDefaultConsumer(com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setDefaultConsumer</h4> <pre>void setDefaultConsumer(<a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> consumer)</pre> <div class="block">Set the current default consumer. Under certain circumstances it is possible for a channel to receive a message delivery which does not match any consumer which is currently set up via basicConsume(). This will occur after the following sequence of events: ctag = basicConsume(queue, consumer); // i.e. with explicit acks // some deliveries take place but are not acked basicCancel(ctag); basicRecover(false); Since requeue is specified to be false in the basicRecover, the spec states that the message must be redelivered to "the original recipient" - i.e. the same channel / consumer-tag. But the consumer is no longer active. In these circumstances, you can register a default consumer to handle such deliveries. If no default consumer is registered an IllegalStateException will be thrown when such a delivery arrives. Most people will not need to use this.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>consumer</code> - the consumer to use, or null indicating "don't use one".</dd></dl> </li> </ul> <a name="basicQos(int, int, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicQos</h4> <pre>void basicQos(int prefetchSize, int prefetchCount, boolean global) throws java.io.IOException</pre> <div class="block">Request specific "quality of service" settings. These settings impose limits on the amount of data the server will deliver to consumers before requiring acknowledgements. Thus they provide a means of consumer-initiated flow control.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefetchSize</code> - maximum amount of content (measured in octets) that the server will deliver, 0 if unlimited</dd><dd><code>prefetchCount</code> - maximum number of messages that the server will deliver, 0 if unlimited</dd><dd><code>global</code> - true if the settings should be applied to the entire channel rather than each consumer</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Qos.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Qos</code></a></dd></dl> </li> </ul> <a name="basicQos(int, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicQos</h4> <pre>void basicQos(int prefetchCount, boolean global) throws java.io.IOException</pre> <div class="block">Request a specific prefetchCount "quality of service" settings for this channel.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefetchCount</code> - maximum number of messages that the server will deliver, 0 if unlimited</dd><dd><code>global</code> - true if the settings should be applied to the entire channel rather than each consumer</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/Channel.html#basicQos(int,%20int,%20boolean)"><code>basicQos(int, int, boolean)</code></a></dd></dl> </li> </ul> <a name="basicQos(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicQos</h4> <pre>void basicQos(int prefetchCount) throws java.io.IOException</pre> <div class="block">Request a specific prefetchCount "quality of service" settings for this channel.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefetchCount</code> - maximum number of messages that the server will deliver, 0 if unlimited</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/Channel.html#basicQos(int,%20int,%20boolean)"><code>basicQos(int, int, boolean)</code></a></dd></dl> </li> </ul> <a name="basicPublish(java.lang.String, java.lang.String, com.rabbitmq.client.AMQP.BasicProperties, byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicPublish</h4> <pre>void basicPublish(java.lang.String exchange, java.lang.String routingKey, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body) throws java.io.IOException</pre> <div class="block">Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of <code>Channel#basicPublish</code> will eventually block if a <a href="http://www.rabbitmq.com/alarms.html">resource-driven alarm</a> is in effect.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the exchange to publish the message to</dd><dd><code>routingKey</code> - the routing key</dd><dd><code>props</code> - other properties for the message - routing headers etc</dd><dd><code>body</code> - the message body</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Publish.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Publish</code></a>, <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>.</dd></dl> </li> </ul> <a name="basicPublish(java.lang.String, java.lang.String, boolean, com.rabbitmq.client.AMQP.BasicProperties, byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicPublish</h4> <pre>void basicPublish(java.lang.String exchange, java.lang.String routingKey, boolean mandatory, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body) throws java.io.IOException</pre> <div class="block">Publish a message. Invocations of <code>Channel#basicPublish</code> will eventually block if a <a href="http://www.rabbitmq.com/alarms.html">resource-driven alarm</a> is in effect.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the exchange to publish the message to</dd><dd><code>routingKey</code> - the routing key</dd><dd><code>mandatory</code> - true if the 'mandatory' flag is to be set</dd><dd><code>props</code> - other properties for the message - routing headers etc</dd><dd><code>body</code> - the message body</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Publish.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Publish</code></a>, <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>.</dd></dl> </li> </ul> <a name="basicPublish(java.lang.String, java.lang.String, boolean, boolean, com.rabbitmq.client.AMQP.BasicProperties, byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicPublish</h4> <pre>void basicPublish(java.lang.String exchange, java.lang.String routingKey, boolean mandatory, boolean immediate, <a href="../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client">AMQP.BasicProperties</a> props, byte[] body) throws java.io.IOException</pre> <div class="block">Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of <code>Channel#basicPublish</code> will eventually block if a <a href="http://www.rabbitmq.com/alarms.html">resource-driven alarm</a> is in effect.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the exchange to publish the message to</dd><dd><code>routingKey</code> - the routing key</dd><dd><code>mandatory</code> - true if the 'mandatory' flag is to be set</dd><dd><code>immediate</code> - true if the 'immediate' flag is to be set. Note that the RabbitMQ server does not support this flag.</dd><dd><code>props</code> - other properties for the message - routing headers etc</dd><dd><code>body</code> - the message body</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Publish.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Publish</code></a>, <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>.</dd></dl> </li> </ul> <a name="exchangeDeclare(java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a> exchangeDeclare(java.lang.String exchange, java.lang.String type) throws java.io.IOException</pre> <div class="block">Actively declare a non-autodelete, non-durable exchange with no extra arguments</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>type</code> - the exchange type</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the exchange was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeclareOk</code></a></dd></dl> </li> </ul> <a name="exchangeDeclare(java.lang.String, java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a> exchangeDeclare(java.lang.String exchange, java.lang.String type, boolean durable) throws java.io.IOException</pre> <div class="block">Actively declare a non-autodelete exchange with no extra arguments</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>type</code> - the exchange type</dd><dd><code>durable</code> - true if we are declaring a durable exchange (the exchange will survive a server restart)</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the exchange was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeclareOk</code></a></dd></dl> </li> </ul> <a name="exchangeDeclare(java.lang.String, java.lang.String, boolean, boolean, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a> exchangeDeclare(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Declare an exchange.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>type</code> - the exchange type</dd><dd><code>durable</code> - true if we are declaring a durable exchange (the exchange will survive a server restart)</dd><dd><code>autoDelete</code> - true if the server should delete the exchange when it is no longer in use</dd><dd><code>arguments</code> - other properties (construction arguments) for the exchange</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the exchange was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeclareOk</code></a></dd></dl> </li> </ul> <a name="exchangeDeclare(java.lang.String, java.lang.String, boolean, boolean, boolean, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a> exchangeDeclare(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, boolean internal, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Declare an exchange, via an interface that allows the complete set of arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>type</code> - the exchange type</dd><dd><code>durable</code> - true if we are declaring a durable exchange (the exchange will survive a server restart)</dd><dd><code>autoDelete</code> - true if the server should delete the exchange when it is no longer in use</dd><dd><code>internal</code> - true if the exchange is internal, i.e. can't be directly published to by a client.</dd><dd><code>arguments</code> - other properties (construction arguments) for the exchange</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the exchange was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeclareOk</code></a></dd></dl> </li> </ul> <a name="exchangeDeclareNoWait(java.lang.String, java.lang.String, boolean, boolean, boolean, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclareNoWait</h4> <pre>void exchangeDeclareNoWait(java.lang.String exchange, java.lang.String type, boolean durable, boolean autoDelete, boolean internal, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map)"><code>exchangeDeclare(String, String, boolean, boolean, java.util.Map)</code></a> but sets nowait parameter to true and returns nothing (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>type</code> - the exchange type</dd><dd><code>durable</code> - true if we are declaring a durable exchange (the exchange will survive a server restart)</dd><dd><code>autoDelete</code> - true if the server should delete the exchange when it is no longer in use</dd><dd><code>internal</code> - true if the exchange is internal, i.e. can't be directly published to by a client.</dd><dd><code>arguments</code> - other properties (construction arguments) for the exchange</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd></dl> </li> </ul> <a name="exchangeDeclarePassive(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeclarePassive</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeclareOk</a> exchangeDeclarePassive(java.lang.String name) throws java.io.IOException</pre> <div class="block">Declare an exchange passively; that is, check if the named exchange exists.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - check the existence of an exchange named this</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - the server will raise a 404 channel exception if the named exchange does not exist.</dd></dl> </li> </ul> <a name="exchangeDelete(java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDelete</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeleteOk</a> exchangeDelete(java.lang.String exchange, boolean ifUnused) throws java.io.IOException</pre> <div class="block">Delete an exchange</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>ifUnused</code> - true to indicate that the exchange is only to be deleted if it is unused</dd> <dt><span class="strong">Returns:</span></dt><dd>a deletion-confirm method to indicate the exchange was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeleteOk</code></a></dd></dl> </li> </ul> <a name="exchangeDeleteNoWait(java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDeleteNoWait</h4> <pre>void exchangeDeleteNoWait(java.lang.String exchange, boolean ifUnused) throws java.io.IOException</pre> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeDelete(java.lang.String,%20boolean)"><code>exchangeDelete(String, boolean)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd><dd><code>ifUnused</code> - true to indicate that the exchange is only to be deleted if it is unused</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeleteOk</code></a></dd></dl> </li> </ul> <a name="exchangeDelete(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeDelete</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.DeleteOk</a> exchangeDelete(java.lang.String exchange) throws java.io.IOException</pre> <div class="block">Delete an exchange, without regard for whether it is in use or not</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the name of the exchange</dd> <dt><span class="strong">Returns:</span></dt><dd>a deletion-confirm method to indicate the exchange was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.DeleteOk</code></a></dd></dl> </li> </ul> <a name="exchangeBind(java.lang.String, java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeBind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.BindOk</a> exchangeBind(java.lang.String destination, java.lang.String source, java.lang.String routingKey) throws java.io.IOException</pre> <div class="block">Bind an exchange to an exchange, with no extra arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.BindOk</code></a></dd></dl> </li> </ul> <a name="exchangeBind(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeBind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.BindOk</a> exchangeBind(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Bind an exchange to an exchange.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.BindOk</code></a></dd></dl> </li> </ul> <a name="exchangeBindNoWait(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeBindNoWait</h4> <pre>void exchangeBindNoWait(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#exchangeBind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)"><code>exchangeBind(String, String, String, java.util.Map)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd></dl> </li> </ul> <a name="exchangeUnbind(java.lang.String, java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeUnbind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.UnbindOk</a> exchangeUnbind(java.lang.String destination, java.lang.String source, java.lang.String routingKey) throws java.io.IOException</pre> <div class="block">Unbind an exchange from an exchange, with no extra arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.BindOk</code></a></dd></dl> </li> </ul> <a name="exchangeUnbind(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeUnbind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Exchange.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Exchange.UnbindOk</a> exchangeUnbind(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Unbind an exchange from an exchange.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Exchange.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Exchange.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Exchange.BindOk</code></a></dd></dl> </li> </ul> <a name="exchangeUnbindNoWait(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exchangeUnbindNoWait</h4> <pre>void exchangeUnbindNoWait(java.lang.String destination, java.lang.String source, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Same as <a href="../../../com/rabbitmq/client/Channel.html#exchangeUnbind(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.util.Map)"><code>exchangeUnbind(String, String, String, java.util.Map)</code></a> but sets no-wait parameter to true and returns nothing (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>destination</code> - the name of the exchange to which messages flow across the binding</dd><dd><code>source</code> - the name of the exchange from which messages flow across the binding</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd></dl> </li> </ul> <a name="queueDeclare()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a> queueDeclare() throws java.io.IOException</pre> <div class="block">Actively declare a server-named exclusive, autodelete, non-durable queue. The name of the new queue is held in the "queue" field of the <a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeclareOk</code></a> result.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the queue was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeclareOk</code></a></dd></dl> </li> </ul> <a name="queueDeclare(java.lang.String, boolean, boolean, boolean, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDeclare</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a> queueDeclare(java.lang.String queue, boolean durable, boolean exclusive, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Declare a queue</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>durable</code> - true if we are declaring a durable queue (the queue will survive a server restart)</dd><dd><code>exclusive</code> - true if we are declaring an exclusive queue (restricted to this connection)</dd><dd><code>autoDelete</code> - true if we are declaring an autodelete queue (server will delete it when no longer in use)</dd><dd><code>arguments</code> - other properties (construction arguments) for the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the queue was successfully declared</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeclareOk</code></a></dd></dl> </li> </ul> <a name="queueDeclareNoWait(java.lang.String, boolean, boolean, boolean, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDeclareNoWait</h4> <pre>void queueDeclareNoWait(java.lang.String queue, boolean durable, boolean exclusive, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#queueDeclare(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)"><code>queueDeclare(String, boolean, boolean, boolean, java.util.Map)</code></a> but sets nowait flag to true and returns no result (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>durable</code> - true if we are declaring a durable queue (the queue will survive a server restart)</dd><dd><code>exclusive</code> - true if we are declaring an exclusive queue (restricted to this connection)</dd><dd><code>autoDelete</code> - true if we are declaring an autodelete queue (server will delete it when no longer in use)</dd><dd><code>arguments</code> - other properties (construction arguments) for the queue</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd></dl> </li> </ul> <a name="queueDeclarePassive(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDeclarePassive</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeclareOk</a> queueDeclarePassive(java.lang.String queue) throws java.io.IOException</pre> <div class="block">Declare a queue passively; i.e., check if it exists. In AMQP 0-9-1, all arguments aside from nowait are ignored; and sending nowait makes this method a no-op, so we default it to false.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>a declaration-confirm method to indicate the queue exists</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered, including if the queue does not exist and if the queue is exclusively owned by another connection.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Declare.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Declare</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeclareOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeclareOk</code></a></dd></dl> </li> </ul> <a name="queueDelete(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDelete</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeleteOk</a> queueDelete(java.lang.String queue) throws java.io.IOException</pre> <div class="block">Delete a queue, without regard for whether it is in use or has messages on it</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>a deletion-confirm method to indicate the queue was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeleteOk</code></a></dd></dl> </li> </ul> <a name="queueDelete(java.lang.String, boolean, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDelete</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.DeleteOk</a> queueDelete(java.lang.String queue, boolean ifUnused, boolean ifEmpty) throws java.io.IOException</pre> <div class="block">Delete a queue</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>ifUnused</code> - true if the queue should be deleted only if not in use</dd><dd><code>ifEmpty</code> - true if the queue should be deleted only if empty</dd> <dt><span class="strong">Returns:</span></dt><dd>a deletion-confirm method to indicate the queue was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeleteOk</code></a></dd></dl> </li> </ul> <a name="queueDeleteNoWait(java.lang.String, boolean, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueDeleteNoWait</h4> <pre>void queueDeleteNoWait(java.lang.String queue, boolean ifUnused, boolean ifEmpty) throws java.io.IOException</pre> <div class="block">Like <a href="../../../com/rabbitmq/client/Channel.html#queueDelete(java.lang.String,%20boolean,%20boolean)"><code>queueDelete(String, boolean, boolean)</code></a> but sets nowait parameter to true and returns nothing (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>ifUnused</code> - true if the queue should be deleted only if not in use</dd><dd><code>ifEmpty</code> - true if the queue should be deleted only if empty</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Delete.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Delete</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.DeleteOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.DeleteOk</code></a></dd></dl> </li> </ul> <a name="queueBind(java.lang.String, java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueBind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.BindOk</a> queueBind(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey) throws java.io.IOException</pre> <div class="block">Bind a queue to an exchange, with no extra arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>exchange</code> - the name of the exchange</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.BindOk</code></a></dd></dl> </li> </ul> <a name="queueBind(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueBind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.BindOk</a> queueBind(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Bind a queue to an exchange.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>exchange</code> - the name of the exchange</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Returns:</span></dt><dd>a binding-confirm method if the binding was successfully created</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Bind.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Bind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.BindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.BindOk</code></a></dd></dl> </li> </ul> <a name="queueBindNoWait(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueBindNoWait</h4> <pre>void queueBindNoWait(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Same as <a href="../../../com/rabbitmq/client/Channel.html#queueDeclare(java.lang.String,%20boolean,%20boolean,%20boolean,%20java.util.Map)"><code>queueDeclare(String, boolean, boolean, boolean, java.util.Map)</code></a> but sets nowait parameter to true and returns void (as there will be no response from the server).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>exchange</code> - the name of the exchange</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd></dl> </li> </ul> <a name="queueUnbind(java.lang.String, java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueUnbind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.UnbindOk</a> queueUnbind(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey) throws java.io.IOException</pre> <div class="block">Unbinds a queue from an exchange, with no extra arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>exchange</code> - the name of the exchange</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd> <dt><span class="strong">Returns:</span></dt><dd>an unbinding-confirm method if the binding was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Unbind.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Unbind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.UnbindOk</code></a></dd></dl> </li> </ul> <a name="queueUnbind(java.lang.String, java.lang.String, java.lang.String, java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queueUnbind</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.UnbindOk</a> queueUnbind(java.lang.String queue, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.io.IOException</pre> <div class="block">Unbind a queue from an exchange.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>exchange</code> - the name of the exchange</dd><dd><code>routingKey</code> - the routine key to use for the binding</dd><dd><code>arguments</code> - other properties (binding parameters)</dd> <dt><span class="strong">Returns:</span></dt><dd>an unbinding-confirm method if the binding was successfully deleted</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Unbind.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Unbind</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.UnbindOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.UnbindOk</code></a></dd></dl> </li> </ul> <a name="queuePurge(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>queuePurge</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Queue.PurgeOk.html" title="interface in com.rabbitmq.client">AMQP.Queue.PurgeOk</a> queuePurge(java.lang.String queue) throws java.io.IOException</pre> <div class="block">Purges the contents of the given queue.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>a purge-confirm method if the purge was executed successfully</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Queue.Purge.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.Purge</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Queue.PurgeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Queue.PurgeOk</code></a></dd></dl> </li> </ul> <a name="basicGet(java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicGet</h4> <pre><a href="../../../com/rabbitmq/client/GetResponse.html" title="class in com.rabbitmq.client">GetResponse</a> basicGet(java.lang.String queue, boolean autoAck) throws java.io.IOException</pre> <div class="block">Retrieve a message from a queue using <a href="../../../com/rabbitmq/client/AMQP.Basic.Get.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Get</code></a></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>autoAck</code> - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements</dd> <dt><span class="strong">Returns:</span></dt><dd>a <a href="../../../com/rabbitmq/client/GetResponse.html" title="class in com.rabbitmq.client"><code>GetResponse</code></a> containing the retrieved message data</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Get.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Get</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.GetEmpty.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetEmpty</code></a></dd></dl> </li> </ul> <a name="basicAck(long, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicAck</h4> <pre>void basicAck(long deliveryTag, boolean multiple) throws java.io.IOException</pre> <div class="block">Acknowledge one or several received messages. Supply the deliveryTag from the <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Deliver</code></a> method containing the received message being acknowledged.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>deliveryTag</code> - the tag from the received <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Deliver</code></a></dd><dd><code>multiple</code> - true to acknowledge all messages up to and including the supplied delivery tag; false to acknowledge just the supplied delivery tag.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Ack.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Ack</code></a></dd></dl> </li> </ul> <a name="basicNack(long, boolean, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicNack</h4> <pre>void basicNack(long deliveryTag, boolean multiple, boolean requeue) throws java.io.IOException</pre> <div class="block">Reject one or several received messages. Supply the <code>deliveryTag</code> from the <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> method containing the message to be rejected.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>deliveryTag</code> - the tag from the received <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Deliver</code></a></dd><dd><code>multiple</code> - true to reject all messages up to and including the supplied delivery tag; false to reject just the supplied delivery tag.</dd><dd><code>requeue</code> - true if the rejected message(s) should be requeued rather than discarded/dead-lettered</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Nack.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Nack</code></a></dd></dl> </li> </ul> <a name="basicReject(long, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicReject</h4> <pre>void basicReject(long deliveryTag, boolean requeue) throws java.io.IOException</pre> <div class="block">Reject a message. Supply the deliveryTag from the <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Deliver</code></a> method containing the received message being rejected.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>deliveryTag</code> - the tag from the received <a href="../../../com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.GetOk</code></a> or <a href="../../../com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Deliver</code></a></dd><dd><code>requeue</code> - true if the rejected message should be requeued rather than discarded/dead-lettered</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Reject.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Reject</code></a></dd></dl> </li> </ul> <a name="basicConsume(java.lang.String, com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicConsume</h4> <pre>java.lang.String basicConsume(java.lang.String queue, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback) throws java.io.IOException</pre> <div class="block">Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>callback</code> - an interface to the consumer object</dd> <dt><span class="strong">Returns:</span></dt><dd>the consumerTag generated by the server</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Consume.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Consume</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.ConsumeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.ConsumeOk</code></a>, <a href="../../../com/rabbitmq/client/Channel.html#basicAck(long,%20boolean)"><code>basicAck(long, boolean)</code></a>, <a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)"><code>basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)</code></a></dd></dl> </li> </ul> <a name="basicConsume(java.lang.String, boolean, com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicConsume</h4> <pre>java.lang.String basicConsume(java.lang.String queue, boolean autoAck, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback) throws java.io.IOException</pre> <div class="block">Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>autoAck</code> - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements</dd><dd><code>callback</code> - an interface to the consumer object</dd> <dt><span class="strong">Returns:</span></dt><dd>the consumerTag generated by the server</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Consume.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Consume</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.ConsumeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.ConsumeOk</code></a>, <a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)"><code>basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)</code></a></dd></dl> </li> </ul> <a name="basicConsume(java.lang.String, boolean, java.util.Map, com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicConsume</h4> <pre>java.lang.String basicConsume(java.lang.String queue, boolean autoAck, java.util.Map<java.lang.String,java.lang.Object> arguments, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback) throws java.io.IOException</pre> <div class="block">Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag and specified arguments.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>autoAck</code> - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements</dd><dd><code>arguments</code> - a set of arguments for the consume</dd><dd><code>callback</code> - an interface to the consumer object</dd> <dt><span class="strong">Returns:</span></dt><dd>the consumerTag generated by the server</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Consume.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Consume</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.ConsumeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.ConsumeOk</code></a>, <a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)"><code>basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)</code></a></dd></dl> </li> </ul> <a name="basicConsume(java.lang.String, boolean, java.lang.String, com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicConsume</h4> <pre>java.lang.String basicConsume(java.lang.String queue, boolean autoAck, java.lang.String consumerTag, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback) throws java.io.IOException</pre> <div class="block">Start a non-nolocal, non-exclusive consumer.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>autoAck</code> - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements</dd><dd><code>consumerTag</code> - a client-generated consumer tag to establish context</dd><dd><code>callback</code> - an interface to the consumer object</dd> <dt><span class="strong">Returns:</span></dt><dd>the consumerTag associated with the new consumer</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Consume.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Consume</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.ConsumeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.ConsumeOk</code></a>, <a href="../../../com/rabbitmq/client/Channel.html#basicConsume(java.lang.String,%20boolean,%20java.lang.String,%20boolean,%20boolean,%20java.util.Map,%20com.rabbitmq.client.Consumer)"><code>basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)</code></a></dd></dl> </li> </ul> <a name="basicConsume(java.lang.String, boolean, java.lang.String, boolean, boolean, java.util.Map, com.rabbitmq.client.Consumer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicConsume</h4> <pre>java.lang.String basicConsume(java.lang.String queue, boolean autoAck, java.lang.String consumerTag, boolean noLocal, boolean exclusive, java.util.Map<java.lang.String,java.lang.Object> arguments, <a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client">Consumer</a> callback) throws java.io.IOException</pre> <div class="block">Start a consumer. Calls the consumer's <a href="../../../com/rabbitmq/client/Consumer.html#handleConsumeOk(java.lang.String)"><code>Consumer.handleConsumeOk(java.lang.String)</code></a> method.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd><dd><code>autoAck</code> - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements</dd><dd><code>consumerTag</code> - a client-generated consumer tag to establish context</dd><dd><code>noLocal</code> - true if the server should not deliver to this consumer messages published on this channel's connection</dd><dd><code>exclusive</code> - true if this is an exclusive consumer</dd><dd><code>callback</code> - an interface to the consumer object</dd><dd><code>arguments</code> - a set of arguments for the consume</dd> <dt><span class="strong">Returns:</span></dt><dd>the consumerTag associated with the new consumer</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Consume.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Consume</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.ConsumeOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.ConsumeOk</code></a></dd></dl> </li> </ul> <a name="basicCancel(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicCancel</h4> <pre>void basicCancel(java.lang.String consumerTag) throws java.io.IOException</pre> <div class="block">Cancel a consumer. Calls the consumer's <a href="../../../com/rabbitmq/client/Consumer.html#handleCancelOk(java.lang.String)"><code>Consumer.handleCancelOk(java.lang.String)</code></a> method.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>consumerTag</code> - a client- or server-generated consumer tag to establish context</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered, or if the consumerTag is unknown</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Basic.Cancel.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.Cancel</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Basic.CancelOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Basic.CancelOk</code></a></dd></dl> </li> </ul> <a name="basicRecover()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicRecover</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Basic.RecoverOk.html" title="interface in com.rabbitmq.client">AMQP.Basic.RecoverOk</a> basicRecover() throws java.io.IOException</pre> <div class="block">Ask the broker to resend unacknowledged messages. In 0-8 basic.recover is asynchronous; in 0-9-1 it is synchronous, and the new, deprecated method basic.recover_async is asynchronous. <p/> Equivalent to calling <code>basicRecover(true)</code>, messages will be requeued and possibly delivered to a different consumer.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/Channel.html#basicRecover(boolean)"><code>basicRecover(boolean)</code></a></dd></dl> </li> </ul> <a name="basicRecover(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>basicRecover</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Basic.RecoverOk.html" title="interface in com.rabbitmq.client">AMQP.Basic.RecoverOk</a> basicRecover(boolean requeue) throws java.io.IOException</pre> <div class="block">Ask the broker to resend unacknowledged messages. In 0-8 basic.recover is asynchronous; in 0-9-1 it is synchronous, and the new, deprecated method basic.recover_async is asynchronous.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>requeue</code> - If true, messages will be requeued and possibly delivered to a different consumer. If false, messages will be redelivered to the same consumer.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="txSelect()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>txSelect</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Tx.SelectOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.SelectOk</a> txSelect() throws java.io.IOException</pre> <div class="block">Enables TX mode on this channel.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>a transaction-selection method to indicate the transaction was successfully initiated</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Tx.Select.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.Select</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Tx.SelectOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.SelectOk</code></a></dd></dl> </li> </ul> <a name="txCommit()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>txCommit</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Tx.CommitOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.CommitOk</a> txCommit() throws java.io.IOException</pre> <div class="block">Commits a TX transaction on this channel.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>a transaction-commit method to indicate the transaction was successfully committed</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Tx.Commit.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.Commit</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Tx.CommitOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.CommitOk</code></a></dd></dl> </li> </ul> <a name="txRollback()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>txRollback</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Tx.RollbackOk.html" title="interface in com.rabbitmq.client">AMQP.Tx.RollbackOk</a> txRollback() throws java.io.IOException</pre> <div class="block">Rolls back a TX transaction on this channel.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>a transaction-rollback method to indicate the transaction was successfully rolled back</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Tx.Rollback.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.Rollback</code></a>, <a href="../../../com/rabbitmq/client/AMQP.Tx.RollbackOk.html" title="interface in com.rabbitmq.client"><code>AMQP.Tx.RollbackOk</code></a></dd></dl> </li> </ul> <a name="confirmSelect()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>confirmSelect</h4> <pre><a href="../../../com/rabbitmq/client/AMQP.Confirm.SelectOk.html" title="interface in com.rabbitmq.client">AMQP.Confirm.SelectOk</a> confirmSelect() throws java.io.IOException</pre> <div class="block">Enables publisher acknowledgements on this channel.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if an error is encountered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/AMQP.Confirm.Select.html" title="interface in com.rabbitmq.client"><code>AMQP.Confirm.Select</code></a></dd></dl> </li> </ul> <a name="getNextPublishSeqNo()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getNextPublishSeqNo</h4> <pre>long getNextPublishSeqNo()</pre> <div class="block">When in confirm mode, returns the sequence number of the next message to be published.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the sequence number of the next message to be published</dd></dl> </li> </ul> <a name="waitForConfirms()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>waitForConfirms</h4> <pre>boolean waitForConfirms() throws java.lang.InterruptedException</pre> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker. Note, when called on a non-Confirm channel, waitForConfirms throws an IllegalStateException.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>whether all the messages were ack'd (and none were nack'd)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code></dd> <dd><code>java.lang.InterruptedException</code></dd></dl> </li> </ul> <a name="waitForConfirms(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>waitForConfirms</h4> <pre>boolean waitForConfirms(long timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException</pre> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown. When called on a non-Confirm channel, waitForConfirms throws an IllegalStateException.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>whether all the messages were ack'd (and none were nack'd)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code></dd> <dd><code>java.lang.InterruptedException</code></dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="waitForConfirmsOrDie()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>waitForConfirmsOrDie</h4> <pre>void waitForConfirmsOrDie() throws java.io.IOException, java.lang.InterruptedException</pre> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker. If any of the messages were nack'd, waitForConfirmsOrDie will throw an IOException. When called on a non-Confirm channel, it will throw an IllegalStateException.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code></dd> <dd><code>java.io.IOException</code></dd> <dd><code>java.lang.InterruptedException</code></dd></dl> </li> </ul> <a name="waitForConfirmsOrDie(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>waitForConfirmsOrDie</h4> <pre>void waitForConfirmsOrDie(long timeout) throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.TimeoutException</pre> <div class="block">Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown. If any of the messages were nack'd, waitForConfirmsOrDie will throw an IOException. When called on a non-Confirm channel, it will throw an IllegalStateException.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code></dd> <dd><code>java.io.IOException</code></dd> <dd><code>java.lang.InterruptedException</code></dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="asyncRpc(com.rabbitmq.client.Method)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asyncRpc</h4> <pre>void asyncRpc(<a href="../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</a> method) throws java.io.IOException</pre> <div class="block">Asynchronously send a method over this channel.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>method</code> - method to transmit over this channel.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - Problem transmitting method.</dd></dl> </li> </ul> <a name="rpc(com.rabbitmq.client.Method)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rpc</h4> <pre><a href="../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</a> rpc(<a href="../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</a> method) throws java.io.IOException</pre> <div class="block">Synchronously send a method over this channel.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>method</code> - method to transmit over this channel.</dd> <dt><span class="strong">Returns:</span></dt><dd>command response to method. Caller should cast as appropriate.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - Problem transmitting method.</dd></dl> </li> </ul> <a name="messageCount(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>messageCount</h4> <pre>long messageCount(java.lang.String queue) throws java.io.IOException</pre> <div class="block">Returns the number of messages in a queue ready to be delivered to consumers. This method assumes the queue exists. If it doesn't, an exception will be closed with an exception.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>the number of messages in ready state</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - Problem transmitting method.</dd></dl> </li> </ul> <a name="consumerCount(java.lang.String)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>consumerCount</h4> <pre>long consumerCount(java.lang.String queue) throws java.io.IOException</pre> <div class="block">Returns the number of consumers on a queue. This method assumes the queue exists. If it doesn't, an exception will be closed with an exception.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>queue</code> - the name of the queue</dd> <dt><span class="strong">Returns:</span></dt><dd>the number of consumers</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - Problem transmitting method.</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../com/rabbitmq/client/BlockedListener.html" title="interface in com.rabbitmq.client"><span class="strong">Prev Class</span></a></li> <li><a href="../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?com/rabbitmq/client/Channel.html" target="_top">Frames</a></li> <li><a href="Channel.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>