Closed
Description
Gary Russell opened AMQP-806 and commented
Currently, support for publisher confirms adds some complexity in that the user provides correlation data and when a confirm is received, the callback is invoked (per message) with the correlation data.
There are use cases where a much simpler algorithm can be used...
template.invoke(t -> {
t.send many messages
t.waitForConfirmsOrDie()
}
...in this case it is not necessary to wrap each channel in a PublisherCallbackChannelImpl
or have the user provide correlation data and callbacks.
Referenced from: pull request #731