Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回下一个发送到指定地址并满足给定选择程序的可用 QAMessage。
QAMessage QAManagerBase.getMessageBySelector( String address, String selector ) throws QAException
address 此地址指定 QAnywhere 客户端用于接收消息的队列名称。
selector 选择程序。
返回下一条 QAMessage,如果没有可用消息,则返回空值。
QAException 类 如果获取消息时存在问题,则抛出异常。
address 参数指定本地队列名称。地址可以采用 'store-id\queue-name' 或 'queue-name' 的形式。如果没有可用消息,则此调用将无限期阻塞直到有可用消息。
使用此方法同步接收消息。