CachingConnectionFactory确认类型简单与相关。

问题描述 投票:0回答:1

CachingConnectionFactory确认型简单与关联型的区别是什么?

spring-boot rabbitmq spring-amqp spring-rabbitmq
1个回答
1
投票

correlated 意味着你通过发送一些相关数据,当收到确认时,你会收到一个回调;回调会得到相关数据--所以你知道确认是为哪个发送的。你可以等待一个 Future<?> 中的相关数据,如果被返回,还可以包含一个返回的消息。

有了 simple它只是意味着你可以阻止等待所有你发送的消息已经收到的确认()。waitForConfirmsOrDie). 对于简单的确认,没有提供任何关联性。

https:/docs.spring.iospring-amqpdocs2.2.6.RELEASEreferencehtml#template-confirms

https:/docs.spring.iospring-amqpdocs2.2.6.RELEASEreferencehtml#scoped-operations。

© www.soinside.com 2019 - 2024. All rights reserved.