[rabbitmq-discuss] basicQos
Alvaro Videla
videlalvaro at gmail.com
Tue Feb 4 22:46:33 GMT 2014
I've just tried the code from the tutorials here:
http://www.rabbitmq.com/tutorials/tutorial-two-java.html
Specifically:
int prefetchCount = 10;
channel.basicQos(prefetchCount);
And it worked.
What errors are you getting?
Regards,
Alvaro
On Tue, Feb 4, 2014 at 11:35 PM, cistron <cwstorm at gmail.com> wrote:
> I just want to pass a veritable to the method instead of hard coding the value.
>
> Sent from my iPhone
>
>> On Feb 4, 2014, at 5:09 PM, Alvaro Videla <videlalvaro at gmail.com> wrote:
>>
>> Hi,
>>
>> What are you tried to achieve?
>>
>> Regards,
>>
>> Alvaro
>>
>>> On Tue, Feb 4, 2014 at 10:30 PM, cw storm <cwstorm at gmail.com> wrote:
>>> Is it possible to pass a variable to basicQos()? For example, I assign "int
>>> x = 10". I called on "channel.basicQos(x)". I tried this but don't see the
>>> consumer service being subscribe to the channel. But if I just hardcode the
>>> actual value, then it works.
>>>
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list