From f920afca963335686c2c662620e5802ad564bc44 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 6 Jan 2014 08:28:37 +0100 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e90a878..a40890e 100644 --- a/README.md +++ b/README.md @@ -240,14 +240,17 @@ is a variable in which you can set a number of options. If you for example want to create a durable, auto-deleted queue, you should pass in the value AMQP::durable + AMQP::autodelete. -The declareQueue() method also accepts a arguments parameter, which is of type +The declareQueue() method also accepts an arguments parameter, which is of type Table. The Table object can be used as an associative array to send additional options to RabbitMQ, that are often custom RabbitMQ extensions to the AMQP -standard: +standard. It even is possible to build complicated, nested, table structures full +of strings, arrays and other tables. In reality, you probably only need strings +and integers: ````c++ // custom options that are passed to the declareQueue call Table arguments; +arguments["x-dead-letter-exchange"] = "some-exchange"; arguments["x-message-ttl"] = 3600 * 1000; arguments["x-expires"] = 7200 * 1000;