Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ "arguments" documentation

Tags:

rabbitmq

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 ?

like image 523
Thomas Avatar asked Sep 17 '25 05:09

Thomas


1 Answers

“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.

like image 173
Gabriele Santomaggio Avatar answered Sep 19 '25 07:09

Gabriele Santomaggio