@@ -197,42 +197,49 @@ public interface Channel extends ShutdownNotifier, AutoCloseable {
197197
198198 /**
199199 * Request specific "quality of service" settings.
200- *
200+ * <p>
201201 * These settings impose limits on the amount of data the server
202202 * will deliver to consumers before requiring acknowledgements.
203203 * 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
207209 * @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
211213 * @throws java.io.IOException if an error is encountered
214+ * @see com.rabbitmq.client.AMQP.Basic.Qos
212215 */
213216 void basicQos (int prefetchSize , int prefetchCount , boolean global ) throws IOException ;
214217
215218 /**
216219 * Request a specific prefetchCount "quality of service" settings
217220 * for this channel.
221+ * <p>
222+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
218223 *
219- * @see #basicQos(int, int, boolean)
220224 * @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
224228 * @throws java.io.IOException if an error is encountered
229+ * @see #basicQos(int, int, boolean)
225230 */
226231 void basicQos (int prefetchCount , boolean global ) throws IOException ;
227232
228233 /**
229234 * Request a specific prefetchCount "quality of service" settings
230235 * for this channel.
236+ * <p>
237+ * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1).
231238 *
232- * @see #basicQos(int, int, boolean)
233239 * @param prefetchCount maximum number of messages that the server
234- * will deliver, 0 if unlimited
240+ * will deliver, 0 if unlimited
235241 * @throws java.io.IOException if an error is encountered
242+ * @see #basicQos(int, int, boolean)
236243 */
237244 void basicQos (int prefetchCount ) throws IOException ;
238245
0 commit comments