@@ -457,6 +457,17 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
457457 */
458458 void basicAck (long deliveryTag , boolean multiple ) throws IOException ;
459459
460+ /**
461+ * Reject a message. Supply the deliveryTag from the {@link com.rabbitmq.client.AMQP.Basic.GetOk}
462+ * or {@link com.rabbitmq.client.AMQP.Basic.Deliver} method
463+ * containing the received message being rejected.
464+ * @see com.rabbitmq.client.AMQP.Basic.Reject
465+ * @param deliveryTag the tag from the received {@link com.rabbitmq.client.AMQP.Basic.GetOk} or {@link com.rabbitmq.client.AMQP.Basic.Deliver}
466+ * @param requeue true if the rejected message should be requeued rather than discarded/dead-lettered
467+ * @throws java.io.IOException if an error is encountered
468+ */
469+ void basicReject (long deliveryTag , boolean requeue ) throws IOException ;
470+
460471 /**
461472 * Start a non-nolocal, non-exclusive consumer, with
462473 * explicit acknowledgements required and a server-generated consumerTag.
@@ -467,7 +478,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
467478 * @see com.rabbitmq.client.AMQP.Basic.Consume
468479 * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
469480 * @see #basicAck
470- * @see #basicConsume(String,boolean, String,boolean,boolean, Consumer)
481+ * @see #basicConsume(String,boolean, String,boolean,boolean, Map, Consumer)
471482 */
472483 String basicConsume (String queue , Consumer callback ) throws IOException ;
473484
@@ -481,7 +492,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
481492 * @throws java.io.IOException if an error is encountered
482493 * @see com.rabbitmq.client.AMQP.Basic.Consume
483494 * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
484- * @see #basicConsume(String,boolean, String,boolean,boolean, Consumer)
495+ * @see #basicConsume(String,boolean, String,boolean,boolean, Map, Consumer)
485496 */
486497 String basicConsume (String queue , boolean noAck , Consumer callback ) throws IOException ;
487498
@@ -495,7 +506,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
495506 * @throws java.io.IOException if an error is encountered
496507 * @see com.rabbitmq.client.AMQP.Basic.Consume
497508 * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
498- * @see #basicConsume(String,boolean, String,boolean,boolean, Consumer)
509+ * @see #basicConsume(String,boolean, String,boolean,boolean, Map, Consumer)
499510 */
500511 String basicConsume (String queue , boolean noAck , String consumerTag , Consumer callback ) throws IOException ;
501512
@@ -513,7 +524,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
513524 * @see com.rabbitmq.client.AMQP.Basic.Consume
514525 * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
515526 */
516- String basicConsume (String queue , boolean noAck , String consumerTag , boolean noLocal , boolean exclusive , Consumer callback ) throws IOException ;
527+ String basicConsume (String queue , boolean noAck , String consumerTag , boolean noLocal , boolean exclusive , Map < String , Object > filter , Consumer callback ) throws IOException ;
517528
518529 /**
519530 * Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}
0 commit comments