Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指出 QAnywhere 客户端应用程序应如何确认消息。
Public Enum AcknowledgementMode
public enum AcknowledgementMode
表示使用其中一个 QAManager 确认方法确认已接收到的消息。
表示客户端应用程序在接收到每条消息时都会进行确认。
如果同步接收消息,则返回 QAManagerBase.GetMessage(string) 方法时将确认消息。如果异步接收消息,则事件处理函数返回时将确认消息。
此模式表示消息仅作为进行中事务的一部分进行确认。
此模式自动指派给 QATransactionalManager 实例。
隐式和显式确认模式被指派给使用 QAManager.Open(AcknowledgementMode) 方法的 QAManager 实例。
有关详细信息,请参见初始化 QAnywhere API。
使用隐式确认时,客户端应用程序在收到消息时会进行确认。使用显式确认时,必须调用其中一个 QAManager 确认方法。服务器在客户端之间传播全部状态变化。
有关详细信息,请参见同步接收消息和异步接收消息。