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

See Also

QueueDepthFilter class.

Returns

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