Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
对在给定消息之前收到的给定 QAMessage 实例和所有未确认消息进行确认。
public virtual qa_bool acknowledgeUntil(QAMessage * msg)
msg 要确认的最后一个消息。还确认所有较早的未确认消息。
当且仅当操作成功时返回 true。
QAMessage 经过确认后,其 MessageProperties::STATUS 属性变为 StatusCodes.RECEIVED。当 QAMessage 状态更改为 StatusCodes.RECEIVED 时,可以使用缺省删除规则将其删除。
有关删除规则的详细信息,请参见消息删除规则。