queueDeclare

open suspend override fun queueDeclare(name: String, durable: Boolean, exclusive: Boolean, autoDelete: Boolean, arguments: Table): AMQPResponse.Channel.Queue.Declared

Declares a queue.

Return

AMQPResponse.Channel.Queue.Declared confirming that broker has accepted the request.

Parameters

name

Name of the queue.

durable

If enabled, creates a queue stored on disk; otherwise, transient.

exclusive

If enabled, queue will be deleted when the channel is closed.

autoDelete

If enabled, queue will be deleted when the last consumer has stopped consuming.

arguments

Additional arguments (check RabbitMQ documentation).


Declare a server-named exclusive, autodelete, non-durable queue.

Return

AMQPResponse.Channel.Queue.Declared confirming that broker has accepted the request.