rabbitmq-event-manager
rabbitmq-event-manager copied to clipboard
Message Re-queue and get the number of messages in queue
Hi, I was trying to re-queue message at certain conditions. As you described in doc, I tried by responding false but it did,t work. I wanted to try what you have proposed in https://github.com/mimiz/rabbitmq-event-manager/issues/18 issue, but i couldn't exactly implement it.
could you please try showing us how to achieve Re-queue as you suggested.
Also, the current amqp library allows to get count of the messages in the queue as follows.
var connection = require("amqp").createConnection(); connection.exchange("exampleExchange", {/*...*/}, function(exchange) { connection.queue("exampleQueue", {/*...*/}, function(queue, messageCount, consumerCount){ console.log("Message count", messageCount); console.log("Consumer count", consumerCount); }); });
How can we achieve that in this library ?