@@ -197,42 +197,49 @@ public interface Channel extends ShutdownNotifier, AutoCloseable {
197
197
198
198
/**
199
199
* Request specific "quality of service" settings.
200
- *
200
+ * <p>
201
201
* These settings impose limits on the amount of data the server
202
202
* will deliver to consumers before requiring acknowledgements.
203
203
* Thus they provide a means of consumer-initiated flow control.
204
- * @see com.rabbitmq.client.AMQP.Basic.Qos
205
- * @param prefetchSize maximum amount of content (measured in
206
- * octets) that the server will deliver, 0 if unlimited
204
+ * <p>
205
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
206
+ *
207
+ * @param prefetchSize maximum amount of content (measured in
208
+ * octets) that the server will deliver, 0 if unlimited
207
209
* @param prefetchCount maximum number of messages that the server
208
- * will deliver, 0 if unlimited
209
- * @param global true if the settings should be applied to the
210
- * entire channel rather than each consumer
210
+ * will deliver, 0 if unlimited
211
+ * @param global true if the settings should be applied to the
212
+ * entire channel rather than each consumer
211
213
* @throws java.io.IOException if an error is encountered
214
+ * @see com.rabbitmq.client.AMQP.Basic.Qos
212
215
*/
213
216
void basicQos (int prefetchSize , int prefetchCount , boolean global ) throws IOException ;
214
217
215
218
/**
216
219
* Request a specific prefetchCount "quality of service" settings
217
220
* for this channel.
221
+ * <p>
222
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
218
223
*
219
- * @see #basicQos(int, int, boolean)
220
224
* @param prefetchCount maximum number of messages that the server
221
- * will deliver, 0 if unlimited
222
- * @param global true if the settings should be applied to the
223
- * entire channel rather than each consumer
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
224
228
* @throws java.io.IOException if an error is encountered
229
+ * @see #basicQos(int, int, boolean)
225
230
*/
226
231
void basicQos (int prefetchCount , boolean global ) throws IOException ;
227
232
228
233
/**
229
234
* Request a specific prefetchCount "quality of service" settings
230
235
* for this channel.
236
+ * <p>
237
+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
231
238
*
232
- * @see #basicQos(int, int, boolean)
233
239
* @param prefetchCount maximum number of messages that the server
234
- * will deliver, 0 if unlimited
240
+ * will deliver, 0 if unlimited
235
241
* @throws java.io.IOException if an error is encountered
242
+ * @see #basicQos(int, int, boolean)
236
243
*/
237
244
void basicQos (int prefetchCount ) throws IOException ;
238
245
0 commit comments