[rabbitmq-discuss] is prefetch count available in erlang rabbitmq client

Ben Hood 0x6e6562 at gmail.com
Mon Sep 21 14:00:37 BST 2009


Hey Mark,

On Thu, Sep 17, 2009 at 7:56 PM, Mark <mark.geib at echostar.com> wrote:
> Setting the prefetch count to one sounds like that will do what I need,
> but I have not found how to do this in the erlang client. Is it there.?

Yes, this is a simple RPC command that is exposed in the Erlang
client. Just create a basic.qos record, set the prefetch_count field
and send it via amqp_channel:call/2. There is a test case called
basic_qos_test in the test_util module that illustrates this.

Ben




More information about the rabbitmq-discuss mailing list