Outbound Endpoints
以下输出端点有许多相似的配置选项。从 5.2 版开始,已添加 confirm-timeout
。通常,当启用发布者确认时,代理将快速返回确认(或未确认),该确认将发送到相应的通道。如果在收到确认之前通道已关闭,Spring AMQP 框架将合成未确认。永远不应出现“缺少”确认的情况,但如果你设置此属性,端点将定期检查它们,如果在没有收到确认的情况下时间过长,将合成未确认。
The following outbound endpoints have many similar configuration options.
Starting with version 5.2, the confirm-timeout
has been added.
Normally, when publisher confirms are enabled, the broker will quickly return an ack (or nack) which will be sent to the appropriate channel.
If a channel is closed before the confirm is received, the Spring AMQP framework will synthesize a nack.
"Missing" acks should never occur but, if you set this property, the endpoint will periodically check for them and synthesize a nack if the time elapses without a confirm being received.