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 Java API reference » QAnywhere Java API for clients » QAManagerBase interface

 

getQueueDepth method

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

Syntax
int 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 QueueDepthFilter interface.

Returns

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