@@ -796,6 +796,26 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
796
796
*/
797
797
String basicConsume (String queue , Consumer callback ) throws IOException ;
798
798
799
+ /**
800
+ * Start a non-nolocal, non-exclusive consumer, with
801
+ * explicit acknowledgement and a server-generated consumerTag.
802
+ * Provide access only to <code>basic.deliver</code> and
803
+ * <code>basic.cancel</code> AMQP methods (which is sufficient
804
+ * for most cases). See methods with a {@link Consumer} argument
805
+ * to have access to all the application callbacks.
806
+ * @param queue the name of the queue
807
+ * @param deliverCallback callback when a message is delivered
808
+ * @param cancelCallback callback when the consumer is cancelled
809
+ * @return the consumerTag generated by the server
810
+ * @throws IOException if an error is encountered
811
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
812
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
813
+ * @see #basicAck
814
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
815
+ * @since 5.0
816
+ */
817
+ String basicConsume (String queue , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
818
+
799
819
/**
800
820
* Start a non-nolocal, non-exclusive consumer, with
801
821
* a server-generated consumerTag.
@@ -812,6 +832,29 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
812
832
*/
813
833
String basicConsume (String queue , boolean autoAck , Consumer callback ) throws IOException ;
814
834
835
+ /**
836
+ * Start a non-nolocal, non-exclusive consumer, with
837
+ * a server-generated consumerTag.
838
+ * Provide access only to <code>basic.deliver</code> and
839
+ * <code>basic.cancel</code> AMQP methods (which is sufficient
840
+ * for most cases). See methods with a {@link Consumer} argument
841
+ * to have access to all the application callbacks.
842
+ * @param queue the name of the queue
843
+ * @param autoAck true if the server should consider messages
844
+ * acknowledged once delivered; false if the server should expect
845
+ * explicit acknowledgements
846
+ * @param deliverCallback callback when a message is delivered
847
+ * @param cancelCallback callback when the consumer is cancelled
848
+ * @return the consumerTag generated by the server
849
+ * @throws IOException if an error is encountered
850
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
851
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
852
+ * @see #basicAck
853
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
854
+ * @since 5.0
855
+ */
856
+ String basicConsume (String queue , boolean autoAck , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
857
+
815
858
/**
816
859
* Start a non-nolocal, non-exclusive consumer, with
817
860
* a server-generated consumerTag and specified arguments.
@@ -829,6 +872,30 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
829
872
*/
830
873
String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , Consumer callback ) throws IOException ;
831
874
875
+ /**
876
+ * Start a non-nolocal, non-exclusive consumer, with
877
+ * a server-generated consumerTag and specified arguments.
878
+ * Provide access only to <code>basic.deliver</code> and
879
+ * <code>basic.cancel</code> AMQP methods (which is sufficient
880
+ * for most cases). See methods with a {@link Consumer} argument
881
+ * to have access to all the application callbacks.
882
+ * @param queue the name of the queue
883
+ * @param autoAck true if the server should consider messages
884
+ * acknowledged once delivered; false if the server should expect
885
+ * explicit acknowledgements
886
+ * @param arguments a set of arguments for the consume
887
+ * @param deliverCallback callback when a message is delivered
888
+ * @param cancelCallback callback when the consumer is cancelled
889
+ * @return the consumerTag generated by the server
890
+ * @throws IOException if an error is encountered
891
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
892
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
893
+ * @see #basicAck
894
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
895
+ * @since 5.0
896
+ */
897
+ String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
898
+
832
899
/**
833
900
* Start a non-nolocal, non-exclusive consumer.
834
901
* @param queue the name of the queue
@@ -845,6 +912,28 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
845
912
*/
846
913
String basicConsume (String queue , boolean autoAck , String consumerTag , Consumer callback ) throws IOException ;
847
914
915
+ /**
916
+ * Start a non-nolocal, non-exclusive consumer.
917
+ * Provide access only to <code>basic.deliver</code> and
918
+ * <code>basic.cancel</code> AMQP methods (which is sufficient
919
+ * for most cases). See methods with a {@link Consumer} argument
920
+ * to have access to all the application callbacks.
921
+ * @param queue the name of the queue
922
+ * @param autoAck true if the server should consider messages
923
+ * acknowledged once delivered; false if the server should expect
924
+ * explicit acknowledgements
925
+ * @param consumerTag a client-generated consumer tag to establish context
926
+ * @param deliverCallback callback when a message is delivered
927
+ * @param cancelCallback callback when the consumer is cancelled
928
+ * @return the consumerTag associated with the new consumer
929
+ * @throws java.io.IOException if an error is encountered
930
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
931
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
932
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
933
+ * @since 5.0
934
+ */
935
+ String basicConsume (String queue , boolean autoAck , String consumerTag , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
936
+
848
937
/**
849
938
* Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
850
939
* method.
@@ -865,6 +954,32 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
865
954
*/
866
955
String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , Consumer callback ) throws IOException ;
867
956
957
+ /**
958
+ * Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
959
+ * method.
960
+ * Provide access only to <code>basic.deliver</code> and
961
+ * <code>basic.cancel</code> AMQP methods (which is sufficient
962
+ * for most cases). See methods with a {@link Consumer} argument
963
+ * to have access to all the application callbacks.
964
+ * @param queue the name of the queue
965
+ * @param autoAck true if the server should consider messages
966
+ * acknowledged once delivered; false if the server should expect
967
+ * explicit acknowledgements
968
+ * @param consumerTag a client-generated consumer tag to establish context
969
+ * @param noLocal true if the server should not deliver to this consumer
970
+ * messages published on this channel's connection
971
+ * @param exclusive true if this is an exclusive consumer
972
+ * @param arguments a set of arguments for the consume
973
+ * @param deliverCallback callback when a message is delivered
974
+ * @param cancelCallback callback when the consumer is cancelled
975
+ * @return the consumerTag associated with the new consumer
976
+ * @throws java.io.IOException if an error is encountered
977
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
978
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
979
+ * @since 5.0
980
+ */
981
+ String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
982
+
868
983
/**
869
984
* Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}
870
985
* method.
0 commit comments