Skip to content

Commit f0f6b4d

Browse files
committed
Merged default into 19129
2 parents 767e380 + 2fffd7a commit f0f6b4d

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean passive, boolean durable, boo
279279
Queue.BindOk queueBind(String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
280280

281281
/**
282-
* Uninds a queue from an exchange, with no extra arguments.
282+
* Unbinds a queue from an exchange, with no extra arguments.
283283
* @see com.rabbitmq.client.AMQP.Queue.Unbind
284284
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
285285
* @param queue the name of the queue

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -502,28 +502,29 @@ public Queue.BindOk queueBind(String queue, String exchange,
502502
}
503503

504504
/**
505-
* Public API - Unbind a queue from an exchange.
506-
* @see com.rabbitmq.client.AMQP.Queue.Unbind
507-
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
505+
* Public API - Bind a queue to an exchange, with no extra arguments.
506+
* @see com.rabbitmq.client.AMQP.Queue.Bind
507+
* @see com.rabbitmq.client.AMQP.Queue.BindOk
508508
*/
509-
public Queue.UnbindOk queueUnbind(String queue, String exchange,
510-
String routingKey, Map<String, Object> arguments)
509+
public Queue.BindOk queueBind(String queue, String exchange, String routingKey)
511510
throws IOException
512511
{
513-
return (Queue.UnbindOk)
514-
exnWrappingRpc(new Queue.Unbind(TICKET, queue, exchange, routingKey,
515-
arguments)).getMethod();
512+
513+
return queueBind(queue, exchange, routingKey, null);
516514
}
517515

518516
/**
519-
* Public API - Bind a queue to an exchange, with no extra arguments.
520-
* @see com.rabbitmq.client.AMQP.Queue.Bind
521-
* @see com.rabbitmq.client.AMQP.Queue.BindOk
517+
* Public API - Unbind a queue from an exchange.
518+
* @see com.rabbitmq.client.AMQP.Queue.Unbind
519+
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
522520
*/
523-
public Queue.BindOk queueBind(String queue, String exchange, String routingKey)
521+
public Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey,
522+
Map<String, Object> arguments)
524523
throws IOException
525524
{
526-
return queueBind(queue, exchange, routingKey, null);
525+
return (Queue.UnbindOk)
526+
exnWrappingRpc(new Queue.Unbind(TICKET, queue, exchange, routingKey,
527+
arguments)).getMethod();
527528
}
528529

529530
/**

0 commit comments

Comments
 (0)