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

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere Java API reference » QAnywhere Java API for clients » QAManagerBase interface


getQueueDepth method

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

int QAManagerBase.getQueueDepth(
  String queue,
  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.

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

For a list of possible filter values, see QueueDepthFilter interface.


INTEGER - The number of messages that have not been received.