我正在尝试使用来自 Azure 服务总线消息传递 jar (azure-messaging-servicebus-7.1.0) 的 ServiceBusProcessorClient
。我在 defer
上看到了 ServiceBusReceivedMessageContext
API。但是没有看到任何 API 来检索延迟消息。 ServiceBusProcessorClient
接受 Consumer
来处理消息。该消费者能否收到延迟消息?
答案 0 :(得分:0)
即使消息被推迟,它仍然remain in the main queue along with all other active messages
我们use ServiceBusProcessorClient to receive the message in the main queue。
所以答案应该是肯定的。
答案 1 :(得分:0)
处理器客户端是非常高级的客户端,仅提供方便的 API 来接收和处理消息。为此,您必须使用较低级别的客户端 ServiceBusReceiverClient
或 ServiceBusReceiverAsyncClient
,并且它们已经公开了更多 API。