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 » QAMessage 接口

 

getRedelivered 方法

语法
boolean QAMessage.getRedelivered()
throws QAException
抛出条件
  • 如果检索重新发送的状态时存在问题,则抛出。

注释

指示消息是否以前已接收但尚未确认。

如果接收方 QAManager 检测到以前曾收到过正在接收的消息,则设置 Redelivered。

例如,应用程序使用以 AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT 打开的 QAManager 接收消息,并且没有确认此消息就关闭。当应用程序再次启动并接收同一消息时,此消息被标记为 redelivered。

返回值

如果以前收到过此消息但未确认,则返回 True。