@@ -193,42 +193,49 @@ public interface Channel extends ShutdownNotifier, AutoCloseable {
193193
194194    /** 
195195     * Request specific "quality of service" settings. 
196-      * 
196+      * <p>  
197197     * These settings impose limits on the amount of data the server 
198198     * will deliver to consumers before requiring acknowledgements. 
199199     * 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 
203205     * @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 
207209     * @throws java.io.IOException if an error is encountered 
210+      * @see com.rabbitmq.client.AMQP.Basic.Qos 
208211     */ 
209212    void  basicQos (int  prefetchSize , int  prefetchCount , boolean  global ) throws  IOException ;
210213
211214    /** 
212215     * Request a specific prefetchCount "quality of service" settings 
213216     * for this channel. 
217+      * <p> 
218+      * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1). 
214219     * 
215-      * @see #basicQos(int, int, boolean) 
216220     * @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 
220224     * @throws java.io.IOException if an error is encountered 
225+      * @see #basicQos(int, int, boolean) 
221226     */ 
222227    void  basicQos (int  prefetchCount , boolean  global ) throws  IOException ;
223228
224229    /** 
225230     * Request a specific prefetchCount "quality of service" settings 
226231     * for this channel. 
232+      * <p> 
233+      * Note the prefetch count must be between 0 and 65535 (unsigned short in AMQP 0-9-1). 
227234     * 
228-      * @see #basicQos(int, int, boolean) 
229235     * @param prefetchCount maximum number of messages that the server 
230-      * will deliver, 0 if unlimited 
236+      *                       will deliver, 0 if unlimited 
231237     * @throws java.io.IOException if an error is encountered 
238+      * @see #basicQos(int, int, boolean) 
232239     */ 
233240    void  basicQos (int  prefetchCount ) throws  IOException ;
234241
0 commit comments