@@ -836,6 +836,27 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
836
836
*/
837
837
String basicConsume (String queue , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
838
838
839
+ /**
840
+ * Start a non-nolocal, non-exclusive consumer, with
841
+ * explicit acknowledgement and a server-generated consumerTag.
842
+ * Provide access to <code>basic.deliver</code>, <code>basic.cancel</code>
843
+ * and shutdown signal callbacks (which is sufficient
844
+ * for most cases). See methods with a {@link Consumer} argument
845
+ * to have access to all the application callbacks.
846
+ * @param queue the name of the queue
847
+ * @param deliverCallback callback when a message is delivered
848
+ * @param cancelCallback callback when the consumer is cancelled
849
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
850
+ * @return the consumerTag generated by the server
851
+ * @throws IOException if an error is encountered
852
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
853
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
854
+ * @see #basicAck
855
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
856
+ * @since 5.0
857
+ */
858
+ String basicConsume (String queue , DeliverCallback deliverCallback , CancelCallback cancelCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
859
+
839
860
/**
840
861
* Start a non-nolocal, non-exclusive consumer, with
841
862
* a server-generated consumerTag.
@@ -898,6 +919,30 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
898
919
*/
899
920
String basicConsume (String queue , boolean autoAck , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
900
921
922
+ /**
923
+ * Start a non-nolocal, non-exclusive consumer, with
924
+ * a server-generated consumerTag.
925
+ * Provide access to <code>basic.deliver</code>, <code>basic.cancel</code>
926
+ * and shutdown signal callbacks (which is sufficient
927
+ * for most cases). See methods with a {@link Consumer} argument
928
+ * to have access to all the application callbacks.
929
+ * @param queue the name of the queue
930
+ * @param autoAck true if the server should consider messages
931
+ * acknowledged once delivered; false if the server should expect
932
+ * explicit acknowledgements
933
+ * @param deliverCallback callback when a message is delivered
934
+ * @param cancelCallback callback when the consumer is cancelled
935
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
936
+ * @return the consumerTag generated by the server
937
+ * @throws IOException if an error is encountered
938
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
939
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
940
+ * @see #basicAck
941
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
942
+ * @since 5.0
943
+ */
944
+ String basicConsume (String queue , boolean autoAck , DeliverCallback deliverCallback , CancelCallback cancelCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
945
+
901
946
/**
902
947
* Start a non-nolocal, non-exclusive consumer, with
903
948
* a server-generated consumerTag and specified arguments.
@@ -963,6 +1008,31 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
963
1008
*/
964
1009
String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
965
1010
1011
+ /**
1012
+ * Start a non-nolocal, non-exclusive consumer, with
1013
+ * a server-generated consumerTag and specified arguments.
1014
+ * Provide access to <code>basic.deliver</code>, <code>basic.cancel</code>
1015
+ * and shutdown signal callbacks (which is sufficient
1016
+ * for most cases). See methods with a {@link Consumer} argument
1017
+ * to have access to all the application callbacks.
1018
+ * @param queue the name of the queue
1019
+ * @param autoAck true if the server should consider messages
1020
+ * acknowledged once delivered; false if the server should expect
1021
+ * explicit acknowledgements
1022
+ * @param arguments a set of arguments for the consume
1023
+ * @param deliverCallback callback when a message is delivered
1024
+ * @param cancelCallback callback when the consumer is cancelled
1025
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
1026
+ * @return the consumerTag generated by the server
1027
+ * @throws IOException if an error is encountered
1028
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
1029
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
1030
+ * @see #basicAck
1031
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
1032
+ * @since 5.0
1033
+ */
1034
+ String basicConsume (String queue , boolean autoAck , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1035
+
966
1036
/**
967
1037
* Start a non-nolocal, non-exclusive consumer.
968
1038
* @param queue the name of the queue
@@ -1023,6 +1093,29 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
1023
1093
*/
1024
1094
String basicConsume (String queue , boolean autoAck , String consumerTag , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1025
1095
1096
+ /**
1097
+ * Start a non-nolocal, non-exclusive consumer.
1098
+ * Provide access to <code>basic.deliver</code>, <code>basic.cancel</code>
1099
+ * and shutdown signal callbacks (which is sufficient
1100
+ * for most cases). See methods with a {@link Consumer} argument
1101
+ * to have access to all the application callbacks.
1102
+ * @param queue the name of the queue
1103
+ * @param autoAck true if the server should consider messages
1104
+ * acknowledged once delivered; false if the server should expect
1105
+ * explicit acknowledgements
1106
+ * @param consumerTag a client-generated consumer tag to establish context
1107
+ * @param deliverCallback callback when a message is delivered
1108
+ * @param cancelCallback callback when the consumer is cancelled
1109
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
1110
+ * @return the consumerTag associated with the new consumer
1111
+ * @throws java.io.IOException if an error is encountered
1112
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
1113
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
1114
+ * @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
1115
+ * @since 5.0
1116
+ */
1117
+ String basicConsume (String queue , boolean autoAck , String consumerTag , DeliverCallback deliverCallback , CancelCallback cancelCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1118
+
1026
1119
/**
1027
1120
* Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
1028
1121
* method.
@@ -1095,6 +1188,33 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
1095
1188
*/
1096
1189
String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , DeliverCallback deliverCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1097
1190
1191
+ /**
1192
+ * Start a consumer. Calls the consumer's {@link Consumer#handleConsumeOk}
1193
+ * method.
1194
+ * Provide access to <code>basic.deliver</code>, <code>basic.cancel</code>
1195
+ * and shutdown signal callbacks (which is sufficient
1196
+ * for most cases). See methods with a {@link Consumer} argument
1197
+ * to have access to all the application callbacks.
1198
+ * @param queue the name of the queue
1199
+ * @param autoAck true if the server should consider messages
1200
+ * acknowledged once delivered; false if the server should expect
1201
+ * explicit acknowledgements
1202
+ * @param consumerTag a client-generated consumer tag to establish context
1203
+ * @param noLocal true if the server should not deliver to this consumer
1204
+ * messages published on this channel's connection
1205
+ * @param exclusive true if this is an exclusive consumer
1206
+ * @param arguments a set of arguments for the consume
1207
+ * @param deliverCallback callback when a message is delivered
1208
+ * @param cancelCallback callback when the consumer is cancelled
1209
+ * @param shutdownSignalCallback callback when the channel/connection is shut down
1210
+ * @return the consumerTag associated with the new consumer
1211
+ * @throws java.io.IOException if an error is encountered
1212
+ * @see com.rabbitmq.client.AMQP.Basic.Consume
1213
+ * @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
1214
+ * @since 5.0
1215
+ */
1216
+ String basicConsume (String queue , boolean autoAck , String consumerTag , boolean noLocal , boolean exclusive , Map <String , Object > arguments , DeliverCallback deliverCallback , CancelCallback cancelCallback , ConsumerShutdownSignalCallback shutdownSignalCallback ) throws IOException ;
1217
+
1098
1218
/**
1099
1219
* Cancel a consumer. Calls the consumer's {@link Consumer#handleCancelOk}
1100
1220
* method.
0 commit comments