Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » QAnywhere » QAnywhere API Reference » QAnywhere C++ API reference » QAManagerBase class


getQueueDepth function

Returns the total depth of all queues, based on a given filter.

qa_int QAManagerBase::getQueueDepth(
  qa_const_string queue,
  qa_short filter
  • queue   The queue name.

  • filter   A filter indicating incoming messages, outgoing messages, or all messages.


Returns the depth of a queue based on a given filter, including uncommitted outgoing messages.

The depth of the queue is the number of messages that have not been received (for example, using the QAManagerBase.getMessage method).

See Also

QueueDepthFilter class.


The number of messages in the queue, or -1 if an error occurs.