[rabbitmq-discuss] Queue Declare in C client amqp_table_entry
Alan Antonuk
alan.antonuk at gmail.com
Thu Nov 22 17:11:21 GMT 2012
A completely untested little snippet for creating a table might look like:
amqp_table_t table;
table.num_entries = 1;
table.entries = malloc(table.num_entries * sizeof(amqp_table_entry_t));
amqp_table_entry_t * entry = &table.entries[0];
entry.key = amqp_cstring_bytes("x-expires");
entry.value.kind = AMQP_FIELD_TYPE_I64;
entry.value.value.i64 = 1800000;
/* do your queue declare call */
free(table.entries);
On Thu, Nov 22, 2012 at 11:29 AM, <m.luchak at smartasking.com> wrote:
> Hi All,
>
>
>
> Lazy question ;) sorry... has to happen sometimes..
>
>
>
> Can anyone point me in the right direction for setting the x-expires value
> in the C client when declaring a queue... using amqp_table_entry is how
> it's done.. but, having difficulty setting the values..
>
>
>
> thanks,
>
> Matthew
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121122/cd9f9cb4/attachment.htm>
More information about the rabbitmq-discuss
mailing list