Skip to content

Commit ab4aeb0

Browse files
author
Simon MacMullen
committed
Merged bug23214 (basic.consume's 'filter' should be called 'arguments')
2 parents 3a2417d + e2fd094 commit ab4aeb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,13 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
508508
* @param noLocal flag set to true unless server local buffering is required
509509
* @param exclusive true if this is an exclusive consumer
510510
* @param callback an interface to the consumer object
511-
* @param filter a set of arguments for the consume. Currently ignored by rabbitmq-server.
511+
* @param arguments a set of arguments for the consume
512512
* @return the consumerTag associated with the new consumer
513513
* @throws java.io.IOException if an error is encountered
514514
* @see com.rabbitmq.client.AMQP.Basic.Consume
515515
* @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
516516
*/
517-
String basicConsume(String queue, boolean noAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String, Object> filter, Consumer callback) throws IOException;
517+
String basicConsume(String queue, boolean noAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String, Object> arguments, Consumer callback) throws IOException;
518518

519519
/**
520520
* Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ public String basicConsume(String queue, boolean noAck, String consumerTag,
670670

671671
/** Public API - {@inheritDoc} */
672672
public String basicConsume(String queue, boolean noAck, String consumerTag,
673-
boolean noLocal, boolean exclusive, Map<String, Object> filter,
673+
boolean noLocal, boolean exclusive, Map<String, Object> arguments,
674674
final Consumer callback)
675675
throws IOException
676676
{
@@ -695,7 +695,7 @@ public String transformReply(AMQCommand replyCommand) {
695695

696696
rpc(new Basic.Consume(TICKET, queue, consumerTag,
697697
noLocal, noAck, exclusive,
698-
false, filter),
698+
false, arguments),
699699
k);
700700

701701
try {

0 commit comments

Comments
 (0)