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 ?
“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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With