INT-4131: Add delayExpression to AMQP Outbounds
JIRA: https://jira.spring.io/browse/INT-4131 Specify an expression on the outbound endpoints to set the `x-delay` header when using the RabbitMQ Delayed Message Exchange plugin. Polishing - PR Comments - Add `setDelay` - Port `FunctionExpression` from DSL - Add `SupplierExpression` Javadoc Fixes Use ValueExpression for delay * Simple polishing for `SupplierExpression` * Mention plain `delay` property in the `amqp.adoc`
This commit is contained in:
committed by
Artem Bilan
parent
c31a96d4cb
commit
9673a02c7d
@@ -1149,7 +1149,14 @@ To configure a default user id for outbound messages, configure it on a `RabbitT
|
||||
Similarly, to set the user id property on replies, inject an appropriately configured template into the inbound gateway.
|
||||
See the http://docs.spring.io/spring-amqp/reference/html/_reference.html#template-user-id[Spring AMQP documentation] for more information.
|
||||
|
||||
[[amqp-delay]]
|
||||
=== Delayed Message Exchange
|
||||
|
||||
Spring AMQP supports the http://docs.spring.io/spring-amqp/reference/html/_reference.html#delayed-message-exchange[RabbitMQ Delayed Message Exchange Plugin].
|
||||
For inbound messages, the `x-delay` header is mapped to the `AmqpHeaders.RECEIVED_DELAY` header.
|
||||
Setting the `AMQPHeaders.DELAY` header will cause the corresponding `x-delay` header to be set in outbound messages.
|
||||
You can also specify the `delay` and `delayExpression` properties on outbound endpoints (`delay-expression` when using XML configuration).
|
||||
This takes precedence over the `AmqpHeaders.DELAY` header.
|
||||
|
||||
[[amqp-channels]]
|
||||
=== AMQP Backed Message Channels
|
||||
|
||||
@@ -55,3 +55,8 @@ See <<stream-reading>> for more information.
|
||||
|
||||
The `BarrierMessageHandler` now supports a discard channel to which late-arriving trigger messages are sent.
|
||||
See <<barrier>> for more information.
|
||||
|
||||
==== AMQP Changes
|
||||
|
||||
The AMQP outbound endpoints now support setting a delay expression for when using the RabbitMQ Delayed Message Exchange plugin.
|
||||
See <<amqp-delay>> for more information.
|
||||
|
||||
Reference in New Issue
Block a user