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