@@ -185,8 +185,7 @@ public interface Channel extends ShutdownNotifier {
185
185
* Request specific "quality of service" settings.
186
186
*
187
187
* These settings impose limits on the amount of data the server
188
- * will deliver to consumers before requiring the receipt of
189
- * acknowledgements.
188
+ * will deliver to consumers before requiring acknowledgements.
190
189
* Thus they provide a means of consumer-initiated flow control.
191
190
* @see com.rabbitmq.client.AMQP.Basic.Qos
192
191
* @param prefetchSize maximum amount of content (measured in
@@ -428,11 +427,13 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
428
427
* @see com.rabbitmq.client.AMQP.Basic.GetOk
429
428
* @see com.rabbitmq.client.AMQP.Basic.GetEmpty
430
429
* @param queue the name of the queue
431
- * @param noAck true if no handshake is required
430
+ * @param autoAck true if the server should consider messages
431
+ * acknowledged once delivered; false if the server should expect
432
+ * explicit acknowledgements
432
433
* @return a {@link GetResponse} containing the retrieved message data
433
434
* @throws java.io.IOException if an error is encountered
434
435
*/
435
- GetResponse basicGet (String queue , boolean noAck ) throws IOException ;
436
+ GetResponse basicGet (String queue , boolean autoAck ) throws IOException ;
436
437
437
438
/**
438
439
* Acknowledge one or several received
@@ -441,7 +442,9 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
441
442
* containing the received message being acknowledged.
442
443
* @see com.rabbitmq.client.AMQP.Basic.Ack
443
444
* @param deliveryTag the tag from the received {@link com.rabbitmq.client.AMQP.Basic.GetOk} or {@link com.rabbitmq.client.AMQP.Basic.Deliver}
444
- * @param multiple true if we are acknowledging multiple messages with the same delivery tag
445
+ * @param multiple true to acknowledge all messages up to and
446
+ * including the supplied delivery tag; false to acknowledge just
447
+ * the supplied delivery tag.
445
448
* @throws java.io.IOException if an error is encountered
446
449
*/
447
450
void basicAck (long deliveryTag , boolean multiple ) throws IOException ;
@@ -459,7 +462,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
459
462
460
463
/**
461
464
* Start a non-nolocal, non-exclusive consumer, with
462
- * explicit acknowledgements required and a server-generated consumerTag.
465
+ * explicit acknowledgement and a server-generated consumerTag.
463
466
* @param queue the name of the queue
464
467
* @param callback an interface to the consumer object
465
468
* @return the consumerTag generated by the server
@@ -475,20 +478,24 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
475
478
* Start a non-nolocal, non-exclusive consumer, with
476
479
* a server-generated consumerTag.
477
480
* @param queue the name of the queue
478
- * @param noAck true if no handshake is required
481
+ * @param autoAck true if the server should consider messages
482
+ * acknowledged once delivered; false if the server should expect
483
+ * explicit acknowledgements
479
484
* @param callback an interface to the consumer object
480
485
* @return the consumerTag generated by the server
481
486
* @throws java.io.IOException if an error is encountered
482
487
* @see com.rabbitmq.client.AMQP.Basic.Consume
483
488
* @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
484
489
* @see #basicConsume(String,boolean, String,boolean,boolean, Map, Consumer)
485
490
*/
486
- String basicConsume (String queue , boolean noAck , Consumer callback ) throws IOException ;
491
+ String basicConsume (String queue , boolean autoAck , Consumer callback ) throws IOException ;
487
492
488
493
/**
489
494
* Start a non-nolocal, non-exclusive consumer.
490
495
* @param queue the name of the queue
491
- * @param noAck true if no handshake is required
496
+ * @param autoAck true if the server should consider messages
497
+ * acknowledged once delivered; false if the server should expect
498
+ * explicit acknowledgements
492
499
* @param consumerTag a client-generated consumer tag to establish context
493
500
* @param callback an interface to the consumer object
494
501
* @return the consumerTag associated with the new consumer
@@ -497,13 +504,15 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
497
504
* @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
498
505
* @see #basicConsume(String,boolean, String,boolean,boolean, Map, Consumer)
499
506
*/
500
- String basicConsume (String queue , boolean noAck , String consumerTag , Consumer callback ) throws IOException ;
507
+ String basicConsume (String queue , boolean autoAck , String consumerTag , Consumer callback ) throws IOException ;
501
508
502
509
/**
503
510
* Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
504
511
* method before returning.
505
512
* @param queue the name of the queue
506
- * @param noAck true if no handshake is required
513
+ * @param autoAck true if the server should consider messages
514
+ * acknowledged once delivered; false if the server should expect
515
+ * explicit acknowledgements
507
516
* @param consumerTag a client-generated consumer tag to establish context
508
517
* @param noLocal flag set to true unless server local buffering is required
509
518
* @param exclusive true if this is an exclusive consumer
@@ -514,7 +523,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
514
523
* @see com.rabbitmq.client.AMQP.Basic.Consume
515
524
* @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
516
525
*/
517
- String basicConsume (String queue , boolean noAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , Consumer callback ) throws IOException ;
526
+ String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , Consumer callback ) throws IOException ;
518
527
519
528
/**
520
529
* Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}
0 commit comments