author | David Blundell <david.blundell@100percentit.com> | |
Fri, 23 May 2014 19:13:52 +0000 (20:13 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 20 Jun 2014 14:44:28 +0000 (16:44 +0200) | ||
commit | 845b9c75c76fa88bee62dac5596ec324360cf5ea | |
tree | 94c4a8987e7c97094cd46efbec823dd582f52714 | tree | snapshot |
parent | d76d25155399943bc9d317c6fb6d1981ca6e9b00 | commit | diff |
Add support for durable AMQP queues
The collectd amqp plugin allows setting messages as persistent but is hardcoded to create or use transient queues that are set to auto_delete. This commit adds support for QueueDurable and QueueAutoDelete boolean values in the config file and changes the queue creation as appropriate.
If the values are not set in the config file, QueueDurable defaults to false and QueueAutoDelete defaults to true.
Tested with RabbitMQ 3.3.1
The collectd amqp plugin allows setting messages as persistent but is hardcoded to create or use transient queues that are set to auto_delete. This commit adds support for QueueDurable and QueueAutoDelete boolean values in the config file and changes the queue creation as appropriate.
If the values are not set in the config file, QueueDurable defaults to false and QueueAutoDelete defaults to true.
Tested with RabbitMQ 3.3.1
src/amqp.c | diff | blob | history |