Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
在上载任何发送给其它客户端的消息和下载任何发送给本地客户端的消息时,皆与 QAnywhere 消息服务器保持同步。
public virtual qa_bool triggerSendReceive()
当且仅当操作成功时返回 true。
对 triggerSendReceive 的调用会使消息在 QAnywhere 代理和中央消息传递服务器之间立即得到同步。手工调用 TriggerSendReceive 将导致消息立即传输,与 QAnywhere 代理传输策略无关。QAnywhere 代理传输策略决定消息传输的方式。例如,当客户端接收推式通知,或者当您调用 QAManagerBase::putMessage 来发送消息时,消息传输将定期自动进行。
有关详细信息,请参见确定在客户端进行消息传输的时间。