CachingConnectionFactory确认型简单与关联型的区别是什么?
correlated
意味着你通过发送一些相关数据,当收到确认时,你会收到一个回调;回调会得到相关数据--所以你知道确认是为哪个发送的。你可以等待一个 Future<?>
中的相关数据,如果被返回,还可以包含一个返回的消息。
有了 simple
它只是意味着你可以阻止等待所有你发送的消息已经收到的确认()。waitForConfirmsOrDie
). 对于简单的确认,没有提供任何关联性。
https:/docs.spring.iospring-amqpdocs2.2.6.RELEASEreferencehtml#template-confirms
和
https:/docs.spring.iospring-amqpdocs2.2.6.RELEASEreferencehtml#scoped-operations。