Thomas
Thomas

Reputation: 8950

RabbitMQ "arguments" documentation

When you create a queue, you can specify time-to-leave of the messages, deletion of the queue if it has not been used for some time etc.

Those parameters are passed via a dictionary ; is there a place where you can find the proper key-values list accepted ?

Upvotes: 4

Views: 9090

Answers (1)

Gabriele Santomaggio
Gabriele Santomaggio

Reputation: 22682

“Arguments” are amqp BasicProperties

http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.2.4/rabbitmq-java-client-javadoc-3.2.4/com/rabbitmq/client/AMQP.BasicProperties.html

Some AMQP broker use the BasicProperties to implement their extensions, for example Time-To-Live extension is an RabbitMQ extension.

If you change the broker you lose this functionality.

Read http://www.rabbitmq.com/extensions.html to see the RabbitMQ extensions.

Anyway you can use the properties as you prefer, for example you can add an your custom key value.

The class http://www.rabbitmq.com/releases//rabbitmq-java-client/current-javadoc/com/rabbitmq/client/MessageProperties.html contains some pre-built BasicProperties.

Upvotes: 3

Related Questions