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 Java API reference » ianywhere.qanywhere.client package » Interface QAManagerBase

 

getQueueDepth method

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

Syntax
int ianywhere.qanywhere.client.QAManagerBase.getQueueDepth(
  String queue,
  short filter
)
Parameters
  • queue   The queue name.

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

Throws
Remarks

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 Interface QueueDepthFilter.

Returns

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