queue abstract method

Future<Queue> queue(
  1. String name, {
  2. bool passive = false,
  3. bool durable = false,
  4. bool exclusive = false,
  5. bool autoDelete = false,
  6. bool noWait = false,
  7. bool declare = true,
  8. Map<String, Object> arguments,
})

Define a queue named name. Returns a Future<Queue> to be completed when the queue is allocated.

The passive flag can be used to test if the queue exists. When passive is set to true, the returned future will fail with a QueueNotFoundException if the queue does not exist.

The durable flag will enable the queue to persist across server restarts.

The exclusive flag will mark the connection as private and accessible only by the current connection. The server will automatically delete the queue when the connection closes.

The autoDelete flag will notify the server that the queue should be deleted when no more connections are using it.

The declare flag can be set to false to skip the queue declaration step for clients with read-only access to the broker.

Implementation

Future<Queue> queue(String name,
    {bool passive = false,
    bool durable = false,
    bool exclusive = false,
    bool autoDelete = false,
    bool noWait = false,
    bool declare = true,
    Map<String, Object> arguments});