GH-3219: Add HandleMessageAdviceAdapter (#3234)
* GH-3219: Add `HandleMessageAdviceAdapter` Fixes https://github.com/spring-projects/spring-integration/issues/3219 * * Fix language in doc Co-Authored-By: Gary Russell <grussell@pivotal.io> Co-authored-by: Gary Russell <grussell@pivotal.io>
This commit is contained in:
@@ -683,6 +683,11 @@ Note that, in that case, the entire downstream flow is within the transaction sc
|
||||
|
||||
In the case of a `MessageHandler` that does not return a response, the advice chain order is retained.
|
||||
|
||||
Starting with version 5.3, the `HandleMessageAdviceAdapter` is present to let apply any existing `MethodInterceptor` for the `MessageHandler.handleMessage()` and, therefore, whole sub-flow.
|
||||
For example a `RetryOperationsInterceptor` could be applied for the whole sub-flow starting from some endpoint, which is not possible by default because consumer endpoint applies advices only for the `AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage()`.
|
||||
Starting with version 5.3, the `HandleMessageAdviceAdapter` is provided to apply any `MethodInterceptor` for the `MessageHandler.handleMessage()` method and, therefore, the whole sub-flow.
|
||||
For example, a `RetryOperationsInterceptor` could be applied to the whole sub-flow starting from some endpoint; this is not possible, by default, because the consumer endpoint applies advices only to the `AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage()`.
|
||||
|
||||
[[tx-handle-message-advice]]
|
||||
==== Transaction Support
|
||||
|
||||
|
||||
@@ -46,6 +46,12 @@ See <<./kotlin-dsl.adoc#kotlin-dsl,Kotlin DSL Chapter>> for more information.
|
||||
A `ReactiveRequestHandlerAdvice` is provided to customize `Mono` replies from message handlers.
|
||||
See <<./handler-advice.adoc#reactive-advice,Reactive Advice>> for more information.
|
||||
|
||||
[[x5.3-reactive-request-handler-advice]]
|
||||
==== HandleMessageAdviceAdapter
|
||||
|
||||
A `HandleMessageAdviceAdapter` is provided to wrap any `MethodInterceptor` for applying on the `MessageHandler.handleMessage()` instead of a default `AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage()` behavior.
|
||||
See <<./handler-advice.adoc#handle-message-advice,Handling Message Advice>> for more information.
|
||||
|
||||
[[x5.3-mongodb-reactive-channel-adapters]]
|
||||
==== MongoDB Reactive Channel Adapters
|
||||
|
||||
|
||||
Reference in New Issue
Block a user