Skip to content

Commit df76b21

Browse files
committed
merge default into bug19250
2 parents 7b3d8a5 + 1713c30 commit df76b21

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,6 @@ void basicPublish(int ticket, String exchange, String routingKey, boolean mandat
198198
*/
199199
Exchange.DeclareOk exchangeDeclare(int ticket, String exchange, String type, boolean durable) throws IOException;
200200

201-
/**
202-
* Actively declare a non-exclusive, non-autodelete queue
203-
* The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
204-
* @see com.rabbitmq.client.AMQP.Queue.Declare
205-
* @see com.rabbitmq.client.AMQP.Queue.DeclareOk
206-
* @param ticket an access ticket for the appropriate realm
207-
* @param queue the name of the queue
208-
* @param durable true if we are declaring a durable exchange (the exchange will survive a server restart)
209-
* @return a declaration-confirm method to indicate the exchange was successfully declared
210-
* @throws java.io.IOException if an error is encountered
211-
*/
212-
Queue.DeclareOk queueDeclare(int ticket, String queue, boolean durable) throws IOException;
213-
214201
/**
215202
* Declare an exchange, via an interface that allows the complete set of arguments
216203
* The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
@@ -250,6 +237,19 @@ Exchange.DeclareOk exchangeDeclare(int ticket, String exchange, String type, boo
250237
* @throws java.io.IOException if an error is encountered
251238
*/
252239
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;
253253

254254
/**
255255
* Declare a queue
@@ -306,31 +306,31 @@ Queue.DeclareOk queueDeclare(int ticket, String queue, boolean passive, boolean
306306
Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey) throws IOException;
307307

308308
/**
309-
* Uninds a queue from an exchange, with no extra arguments.
310-
* @see com.rabbitmq.client.AMQP.Queue.Unbind
311-
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
309+
* Bind a queue to an exchange.
310+
* @see com.rabbitmq.client.AMQP.Queue.Bind
311+
* @see com.rabbitmq.client.AMQP.Queue.BindOk
312312
* @param ticket an access ticket for the appropriate realm
313313
* @param queue the name of the queue
314314
* @param exchange the name of the exchange
315315
* @param routingKey the routine key to use for the binding
316-
* @return an unbinding-confirm method if the binding was successfully deleted
316+
* @param arguments other properties (binding parameters)
317+
* @return a binding-confirm method if the binding was successfully created
317318
* @throws java.io.IOException if an error is encountered
318319
*/
319-
Queue.UnbindOk queueUnbind(int ticket, String queue, String exchange, String routingKey) throws IOException;
320-
320+
Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
321+
321322
/**
322-
* Bind a queue to an exchange.
323-
* @see com.rabbitmq.client.AMQP.Queue.Bind
324-
* @see com.rabbitmq.client.AMQP.Queue.BindOk
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
325326
* @param ticket an access ticket for the appropriate realm
326327
* @param queue the name of the queue
327328
* @param exchange the name of the exchange
328329
* @param routingKey the routine key to use for the binding
329-
* @param arguments other properties (binding parameters)
330-
* @return a binding-confirm method if the binding was successfully created
330+
* @return an unbinding-confirm method if the binding was successfully deleted
331331
* @throws java.io.IOException if an error is encountered
332332
*/
333-
Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
333+
Queue.UnbindOk queueUnbind(int ticket, String queue, String exchange, String routingKey) throws IOException;
334334

335335
/**
336336
* Unbind a queue from an exchange.

0 commit comments

Comments
 (0)