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 参考 » QAnywhere Java API 参考 » 用于客户端的 QAnywhere Java API » QAManagerBase 接口

 

getQueueDepth 方法

基于给定过滤器,返回所有队列的深度总和。

语法
int QAManagerBase.getQueueDepth(
  String queue,
  short filter
)
参数
  • queue   队列名。

  • filter   filter 指示进来的消息、外发的消息或全部消息。

抛出条件
注释

基于给定过滤器,返回队列深度。

队列的深度是指没有被接收(如使用 QAManagerBase.getMessage 方法)的消息的数量,其中包括了未提交的外发消息。

有关可能的过滤器值的列表,请参见QueueDepthFilter 接口

返回值

INTEGER - 未接收到的消息的数量。