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

SQL Anywhere 11.0.1 (Français) » QAnywhere » QAnywhere Reference » QAnywhere C++ API reference » QAManagerBase class

 

getQueueDepth function

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

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

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

Remarks

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 getMessage method).

See Also

QueueDepthFilter class.

Returns

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