You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/amqp.adoc
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -851,7 +851,7 @@ When such a channel is obtained, the client can register a `PublisherCallbackCha
851
851
The `PublisherCallbackChannel` implementation contains logic to route a confirm or return to the appropriate listener.
852
852
These features are explained further in the following sections.
853
853
854
-
See also `simplePublisherConfirms` in <<scoped-operations>>.
854
+
See also <<template-confirms>> and `simplePublisherConfirms` in <<scoped-operations>>.
855
855
856
856
TIP: For some more background information, see the blog post by the RabbitMQ team titled https://www.rabbitmq.com/blog/2011/02/10/introducing-publisher-confirms/[Introducing Publisher Confirms].
857
857
@@ -1278,6 +1278,8 @@ The following example shows how to configure a `CorrelationData` instance:
@@ -1286,8 +1288,15 @@ The `Confirm` object is a simple bean with 2 properties: `ack` and `reason` (for
1286
1288
The reason is not populated for broker-generated `nack` instances.
1287
1289
It is populated for `nack` instances generated by the framework (for example, closing the connection while `ack` instances are outstanding).
1288
1290
1289
-
In addition, when both confirms and returns are enabled, the `CorrelationData` is populated with the returned message, as long as the `CorrelationData` has a unique `id`; this is always the case, by default, starting with version 2.3.
1290
-
It is guaranteed that the returned message is set before the future is set with the `ack`.
1291
+
In addition, when both confirms and returns are enabled, the `CorrelationData` `return` property is populated with the returned message, if it couldn't be routed to any queue.
1292
+
It is guaranteed that the returned message property is set before the future is set with the `ack`.
1293
+
`CorrelationData.getReturn()` returns a `ReturnMessage` with properties:
1294
+
1295
+
* message (the returned message)
1296
+
* replyCode
1297
+
* replyText
1298
+
* exchange
1299
+
* routingKey
1291
1300
1292
1301
See also <<scoped-operations>> for a simpler mechanism for waiting for publisher confirms.
0 commit comments