@@ -214,42 +214,49 @@ public interface Channel extends ShutdownNotifier {
214
214
215
215
/**
216
216
* Request specific "quality of service" settings.
217
- *
217
+ * <p>
218
218
* These settings impose limits on the amount of data the server
219
219
* will deliver to consumers before requiring acknowledgements.
220
220
* Thus they provide a means of consumer-initiated flow control.
221
- * @see com.rabbitmq.client.AMQP.Basic.Qos
222
- * @param prefetchSize maximum amount of content (measured in
223
- * octets) that the server will deliver, 0 if unlimited
221
+ * <p>
222
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
223
+ *
224
+ * @param prefetchSize maximum amount of content (measured in
225
+ * octets) that the server will deliver, 0 if unlimited
224
226
* @param prefetchCount maximum number of messages that the server
225
- * will deliver, 0 if unlimited
226
- * @param global true if the settings should be applied to the
227
- * entire channel rather than each consumer
227
+ * will deliver, 0 if unlimited
228
+ * @param global true if the settings should be applied to the
229
+ * entire channel rather than each consumer
228
230
* @throws java.io.IOException if an error is encountered
231
+ * @see com.rabbitmq.client.AMQP.Basic.Qos
229
232
*/
230
233
void basicQos (int prefetchSize , int prefetchCount , boolean global ) throws IOException ;
231
234
232
235
/**
233
236
* Request a specific prefetchCount "quality of service" settings
234
237
* for this channel.
238
+ * <p>
239
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
235
240
*
236
- * @see #basicQos(int, int, boolean)
237
241
* @param prefetchCount maximum number of messages that the server
238
- * will deliver, 0 if unlimited
239
- * @param global true if the settings should be applied to the
240
- * entire channel rather than each consumer
242
+ * will deliver, 0 if unlimited
243
+ * @param global true if the settings should be applied to the
244
+ * entire channel rather than each consumer
241
245
* @throws java.io.IOException if an error is encountered
246
+ * @see #basicQos(int, int, boolean)
242
247
*/
243
248
void basicQos (int prefetchCount , boolean global ) throws IOException ;
244
249
245
250
/**
246
251
* Request a specific prefetchCount "quality of service" settings
247
252
* for this channel.
253
+ * <p>
254
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
248
255
*
249
- * @see #basicQos(int, int, boolean)
250
256
* @param prefetchCount maximum number of messages that the server
251
- * will deliver, 0 if unlimited
257
+ * will deliver, 0 if unlimited
252
258
* @throws java.io.IOException if an error is encountered
259
+ * @see #basicQos(int, int, boolean)
253
260
*/
254
261
void basicQos (int prefetchCount ) throws IOException ;
255
262
0 commit comments