@@ -816,6 +816,26 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
816
816
*/
817
817
String basicConsume (String queue , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
818
818
819
+ /**
820
+ * Start a non-nolocal, non-exclusive consumer, with
821
+ * explicit acknowledgement and a server-generated consumerTag.
822
+ * Provide access only to <code>basic.deliver</code> and
823
+ * shutdown signal callbacks (which is sufficient
824
+ * for most cases). See methods with a {@link Consumer} argument
825
+ * to have access to all the application callbacks.
826
+ * @param queue the name of the queue
827
+ * @param deliverCallback callback when a message is delivered
828
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
829
+ * @return the consumerTag generated by the server
830
+ * @throws IOException if an error is encountered
831
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
832
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
833
+ * @see #basicAck
834
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
835
+ * @since 5.0
836
+ */
837
+ String basicConsume (String queue , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
838
+
819
839
/**
820
840
* Start a non-nolocal, non-exclusive consumer, with
821
841
* a server-generated consumerTag.
@@ -855,6 +875,29 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
855
875
*/
856
876
String basicConsume (String queue , boolean autoAck , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
857
877
878
+ /**
879
+ * Start a non-nolocal, non-exclusive consumer, with
880
+ * a server-generated consumerTag.
881
+ * Provide access only to <code>basic.deliver</code> and
882
+ * shutdown signal callbacks (which is sufficient
883
+ * for most cases). See methods with a {@link Consumer} argument
884
+ * to have access to all the application callbacks.
885
+ * @param queue the name of the queue
886
+ * @param autoAck true if the server should consider messages
887
+ * acknowledged once delivered; false if the server should expect
888
+ * explicit acknowledgements
889
+ * @param deliverCallback callback when a message is delivered
890
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
891
+ * @return the consumerTag generated by the server
892
+ * @throws IOException if an error is encountered
893
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
894
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
895
+ * @see #basicAck
896
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
897
+ * @since 5.0
898
+ */
899
+ String basicConsume (String queue , boolean autoAck , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
900
+
858
901
/**
859
902
* Start a non-nolocal, non-exclusive consumer, with
860
903
* a server-generated consumerTag and specified arguments.
@@ -896,6 +939,30 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
896
939
*/
897
940
String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
898
941
942
+ /**
943
+ * Start a non-nolocal, non-exclusive consumer, with
944
+ * a server-generated consumerTag and specified arguments.
945
+ * Provide access only to <code>basic.deliver</code> and
946
+ * shutdown signal callbacks (which is sufficient
947
+ * for most cases). See methods with a {@link Consumer} argument
948
+ * to have access to all the application callbacks.
949
+ * @param queue the name of the queue
950
+ * @param autoAck true if the server should consider messages
951
+ * acknowledged once delivered; false if the server should expect
952
+ * explicit acknowledgements
953
+ * @param arguments a set of arguments for the consume
954
+ * @param deliverCallback callback when a message is delivered
955
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
956
+ * @return the consumerTag generated by the server
957
+ * @throws IOException if an error is encountered
958
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
959
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
960
+ * @see #basicAck
961
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
962
+ * @since 5.0
963
+ */
964
+ String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
965
+
899
966
/**
900
967
* Start a non-nolocal, non-exclusive consumer.
901
968
* @param queue the name of the queue
@@ -934,6 +1001,28 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
934
1001
*/
935
1002
String basicConsume (String queue , boolean autoAck , String consumerTag , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
936
1003
1004
+ /**
1005
+ * Start a non-nolocal, non-exclusive consumer.
1006
+ * Provide access only to <code>basic.deliver</code> and
1007
+ * shutdown signal callbacks (which is sufficient
1008
+ * for most cases). See methods with a {@link Consumer} argument
1009
+ * to have access to all the application callbacks.
1010
+ * @param queue the name of the queue
1011
+ * @param autoAck true if the server should consider messages
1012
+ * acknowledged once delivered; false if the server should expect
1013
+ * explicit acknowledgements
1014
+ * @param consumerTag a client-generated consumer tag to establish context
1015
+ * @param deliverCallback callback when a message is delivered
1016
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
1017
+ * @return the consumerTag associated with the new consumer
1018
+ * @throws java.io.IOException if an error is encountered
1019
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
1020
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
1021
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
1022
+ * @since 5.0
1023
+ */
1024
+ String basicConsume (String queue , boolean autoAck , String consumerTag , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1025
+
937
1026
/**
938
1027
* Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
939
1028
* method.
@@ -980,6 +1069,32 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
980
1069
*/
981
1070
String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback ) throws IOException ;
982
1071
1072
+ /**
1073
+ * Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
1074
+ * method.
1075
+ * Provide access only to <code>basic.deliver</code> and
1076
+ * shutdown signal callbacks (which is sufficient
1077
+ * for most cases). See methods with a {@link Consumer} argument
1078
+ * to have access to all the application callbacks.
1079
+ * @param queue the name of the queue
1080
+ * @param autoAck true if the server should consider messages
1081
+ * acknowledged once delivered; false if the server should expect
1082
+ * explicit acknowledgements
1083
+ * @param consumerTag a client-generated consumer tag to establish context
1084
+ * @param noLocal true if the server should not deliver to this consumer
1085
+ * messages published on this channel's connection
1086
+ * @param exclusive true if this is an exclusive consumer
1087
+ * @param arguments a set of arguments for the consume
1088
+ * @param deliverCallback callback when a message is delivered
1089
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
1090
+ * @return the consumerTag associated with the new consumer
1091
+ * @throws java.io.IOException if an error is encountered
1092
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
1093
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
1094
+ * @since 5.0
1095
+ */
1096
+ String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1097
+
983
1098
/**
984
1099
* Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}
985
1100
* method.
0 commit comments