package amqp-client-async

  1. Overview
  2. Docs

This method deletes a queue. When a queue is deleted any pending messages are sent to a dead-letter queue if this is defined in the server configuration, and all consumers on the queue are cancelled.

type t = {
  1. queue : queue_name;
    (*

    Specifies the name of the queue to delete.

    *)
  2. if_unused : Amqp_client_lib.Types.bit;
    (*

    If set, the server will only delete the queue if it has no consumers. If the queue has consumers the server does does not delete it but raises a channel exception instead.

    *)
  3. if_empty : Amqp_client_lib.Types.bit;
    (*

    If set, the server will only delete the queue if it has no messages.

    *)
  4. no_wait : no_wait;
}
val init : queue:'a -> if_unused:queue_name -> if_empty:Amqp_client_lib.Types.bit -> no_wait:Amqp_client_lib.Types.bit -> unit -> no_wait -> t
OCaml

Innovation. Community. Security.