• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • amqp-client-async

  • Documentation
  • amqp-client-async lib
  • Amqp_client_async .Spec .Queue .Declare_ok Module
package amqp-client-async
  • amqp-client-async
    • Amqp_client_async
      • Amqp
      • Channel
        • Transaction
      • Connection
      • Constants
      • Exchange
      • Framing
      • Message
      • Protocol_helpers
      • Queue
      • Rpc
        • Client
        • Server
      • Spec
        • Basic
          • Ack
          • Cancel
          • Cancel_ok
          • Consume
          • Consume_ok
          • Content
          • Deliver
          • Get
          • Get_empty
          • Get_ok
          • Nack
          • Publish
          • Qos
          • Qos_ok
          • Recover
          • Recover_async
          • Recover_ok
          • Reject
          • Return
        • Channel
          • Close
          • Close_ok
          • Flow
          • Flow_ok
          • Open
          • Open_ok
        • Confirm
          • Select
          • Select_ok
        • Connection
          • Blocked
          • Close
          • Close_ok
          • Open
          • Open_ok
          • Secure
          • Secure_ok
          • Start
          • Start_ok
          • Tune
          • Tune_ok
          • Unblocked
        • Exchange
          • Bind
          • Bind_ok
          • Declare
          • Declare_ok
          • Delete
          • Delete_ok
          • Unbind
          • Unbind_ok
        • Queue
          • Bind
          • Bind_ok
          • Declare
          • Declare_ok
          • Delete
          • Delete_ok
          • Purge
          • Purge_ok
          • Unbind
          • Unbind_ok
        • Tx
          • Commit
          • Commit_ok
          • Rollback
          • Rollback_ok
          • Select
          • Select_ok
      • Thread
        • Deferred
          • List
        • Ivar
        • Log
        • Pipe
          • Reader
          • Writer
        • Reader
        • Scheduler
        • Tcp
        • Writer
Legend:
Library
Module
Module type
Parameter
Class
Class type

This method confirms a Declare method and confirms the name of the queue, essential for automatically-named queues.

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

    Reports the name of the queue. If the server generated a queue name, this field contains that name.

    *)
  2. message_count : message_count;
  3. consumer_count : Amqp_client_lib.Types.long;
    (*

    Reports the number of active consumers for the queue. Note that consumers can suspend activity (Channel.Flow) in which case they do not appear in this count.

    *)
}
val init : queue:queue_name -> message_count:message_count -> consumer_count:Amqp_client_lib.Types.long -> unit -> t

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct