Update README.md
This commit is contained in:
parent
47cd9c22d7
commit
f920afca96
|
|
@ -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
|
want to create a durable, auto-deleted queue, you should pass in the value
|
||||||
AMQP::durable + AMQP::autodelete.
|
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
|
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
|
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++
|
````c++
|
||||||
// custom options that are passed to the declareQueue call
|
// custom options that are passed to the declareQueue call
|
||||||
Table arguments;
|
Table arguments;
|
||||||
|
arguments["x-dead-letter-exchange"] = "some-exchange";
|
||||||
arguments["x-message-ttl"] = 3600 * 1000;
|
arguments["x-message-ttl"] = 3600 * 1000;
|
||||||
arguments["x-expires"] = 7200 * 1000;
|
arguments["x-expires"] = 7200 * 1000;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue