@@ -70,9 +70,18 @@ public interface Channel extends ShutdownNotifier{
7070 Connection getConnection ();
7171
7272 /**
73- * Close this channel with the given code and message
73+ * Close this channel with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
74+ * and message 'OK'.
75+ *
76+ * @throws java.io.IOException if an error is encountered
77+ */
78+ void close () throws IOException ;
79+
80+ /**
81+ * Close this channel.
82+ *
7483 * @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
75- * @param closeMessage a message indicating the reason for closing the channel
84+ * @param closeMessage a message indicating the reason for closing the connection
7685 * @throws java.io.IOException if an error is encountered
7786 */
7887 void close (int closeCode , String closeMessage ) throws IOException ;
@@ -189,19 +198,6 @@ void basicPublish(int ticket, String exchange, String routingKey, boolean mandat
189198 */
190199 Exchange .DeclareOk exchangeDeclare (int ticket , String exchange , String type , boolean durable ) throws IOException ;
191200
192- /**
193- * Actively declare a non-exclusive, non-autodelete queue
194- * The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
195- * @see com.rabbitmq.client.AMQP.Queue.Declare
196- * @see com.rabbitmq.client.AMQP.Queue.DeclareOk
197- * @param ticket an access ticket for the appropriate realm
198- * @param queue the name of the queue
199- * @param durable true if we are declaring a durable exchange (the exchange will survive a server restart)
200- * @return a declaration-confirm method to indicate the exchange was successfully declared
201- * @throws java.io.IOException if an error is encountered
202- */
203- Queue .DeclareOk queueDeclare (int ticket , String queue , boolean durable ) throws IOException ;
204-
205201 /**
206202 * Declare an exchange, via an interface that allows the complete set of arguments
207203 * The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
@@ -241,6 +237,19 @@ Exchange.DeclareOk exchangeDeclare(int ticket, String exchange, String type, boo
241237 * @throws java.io.IOException if an error is encountered
242238 */
243239 Queue .DeclareOk queueDeclare (int ticket , String queue ) throws IOException ;
240+
241+ /**
242+ * Actively declare a non-exclusive, non-autodelete queue
243+ * The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
244+ * @see com.rabbitmq.client.AMQP.Queue.Declare
245+ * @see com.rabbitmq.client.AMQP.Queue.DeclareOk
246+ * @param ticket an access ticket for the appropriate realm
247+ * @param queue the name of the queue
248+ * @param durable true if we are declaring a durable exchange (the exchange will survive a server restart)
249+ * @return a declaration-confirm method to indicate the exchange was successfully declared
250+ * @throws java.io.IOException if an error is encountered
251+ */
252+ Queue .DeclareOk queueDeclare (int ticket , String queue , boolean durable ) throws IOException ;
244253
245254 /**
246255 * Declare a queue
@@ -309,6 +318,33 @@ Queue.DeclareOk queueDeclare(int ticket, String queue, boolean passive, boolean
309318 * @throws java.io.IOException if an error is encountered
310319 */
311320 Queue .BindOk queueBind (int ticket , String queue , String exchange , String routingKey , Map <String , Object > arguments ) throws IOException ;
321+
322+ /**
323+ * Uninds a queue from an exchange, with no extra arguments.
324+ * @see com.rabbitmq.client.AMQP.Queue.Unbind
325+ * @see com.rabbitmq.client.AMQP.Queue.UnbindOk
326+ * @param ticket an access ticket for the appropriate realm
327+ * @param queue the name of the queue
328+ * @param exchange the name of the exchange
329+ * @param routingKey the routine key to use for the binding
330+ * @return an unbinding-confirm method if the binding was successfully deleted
331+ * @throws java.io.IOException if an error is encountered
332+ */
333+ Queue .UnbindOk queueUnbind (int ticket , String queue , String exchange , String routingKey ) throws IOException ;
334+
335+ /**
336+ * Unbind a queue from an exchange.
337+ * @see com.rabbitmq.client.AMQP.Queue.Unbind
338+ * @see com.rabbitmq.client.AMQP.Queue.UnbindOk
339+ * @param ticket an access ticket for the appropriate realm
340+ * @param queue the name of the queue
341+ * @param exchange the name of the exchange
342+ * @param routingKey the routine key to use for the binding
343+ * @param arguments other properties (binding parameters)
344+ * @return an unbinding-confirm method if the binding was successfully deleted
345+ * @throws java.io.IOException if an error is encountered
346+ */
347+ Queue .UnbindOk queueUnbind (int ticket , String queue , String exchange , String routingKey , Map <String , Object > arguments ) throws IOException ;
312348
313349 /**
314350 * Retrieve a message from a queue using {@link com.rabbitmq.client.AMQP.Basic.Get}
0 commit comments