AMQP: Multiple Sends within an OB Channel Adapter
In preparation for: https://github.com/spring-cloud/spring-cloud-stream-binder-rabbit/issues/209 When `multiSend` is true and multiple messages are sent as the payload of a message, each message is sent within the `invoke()` method of the `RabbitTemplate`. * Fix javadoc typo * Fix DSL Spec hierarchy * Protected CTOR/fields in new and modified specs * Protected CTORs, fields for remaining AMQP Specs
This commit is contained in:
@@ -552,7 +552,8 @@ The following example shows the available properties for an AMQP outbound channe
|
||||
error-message-strategy="" <16>
|
||||
header-mapper="" <17>
|
||||
mapped-request-headers="" <18>
|
||||
lazy-connect="true" /> <19>
|
||||
lazy-connect="true" <19>
|
||||
multi-send="false"/> <20>
|
||||
----
|
||||
|
||||
<1> The unique ID for this adapter.
|
||||
@@ -631,6 +632,10 @@ The values in this list can also be simple patterns to be matched against the he
|
||||
<19> When set to `false`, the endpoint attempts to connect to the broker during application context initialization.
|
||||
This allows "`fail fast`" detection of bad configuration but also causes initialization to fail if the broker is down.
|
||||
When `true` (the default), the connection is established (if it does not already exist because some other component established it) when the first message is sent.
|
||||
<20> When set to `true`, payloads of type `Iterable<Message<?>>` will be sent as discrete messages on the same channel within the scope of a single `RabbitTemplate` invocation.
|
||||
Requires a `RabbitTemplate`.
|
||||
When `wait-for-confirms` is true, `RabbitTemplate.waitForConfirmsOrDie()` is invoked after the messages have been sent.
|
||||
With a transactional template, the sends will be performed in either a new transaction or one that has already been started (if present).
|
||||
====
|
||||
|
||||
[IMPORTANT]
|
||||
|
||||
@@ -48,6 +48,12 @@ See <<./gateway.adoc/gateway-calling-default-methods,Invoking `default` Methods>
|
||||
Internal components (such as `_org.springframework.integration.errorLogger`) now have a shortened name when they are represented in the integration graph.
|
||||
See <<./graph.adoc#integration-graph,Integration Graph>> for more information.
|
||||
|
||||
[[x5.3-amqp]]
|
||||
=== AMQP Changes
|
||||
|
||||
The outbound channel adapter has a new property `multiSend` allowing multiple messages to be sent within the scope of one `RabbitTemplate` invocation.
|
||||
See <<./amqp.adoc/amqp-outbound-channel-adapter,AMQP Outbound Channel Adapter>> for more information.
|
||||
|
||||
[[x5.3-http]]
|
||||
=== HTTP Changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user