如果要取消一条 QAnywhere 消息,可在传输前将其置于已取消状态。当使用 QAnywhere 代理的缺省删除规则时,已取消的消息最终会从消息存储库中删除。如果 QAnywhere 消息已经处于最终状态,或已经传输到中央消息传递服务器,则无法取消该消息。
以下过程介绍如何取消 QAnywhere 消息。
无法使用 QAnywhere SQL API 取消消息。
获取要取消的消息的 ID。
// msg is a QAMessage instance that has not been // transmitted. string msgID = msg.getMessageID(); |
使用要取消的消息的 ID 来调用 CancelMessage。
mgr.CancelMessage(msgID); |
获取要取消的消息的 ID。
// msg is a QAMessage instance that has not been // transmitted. qa_string msgID = msg->getMessageID(); |
使用要取消的消息的 ID 来调用 cancelMessage。
bool result = mgr->cancelMessage(msgID); |
获取要取消的消息的 ID。
// msg is a QAMessage instance that has not been // transmitted. String msgID = msg.getMessageID(); |
使用要取消的消息的 ID 来调用 cancelMessage。
boolean result = mgr.cancelMessage(msgID); |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |