Skip to content

Commit 0245e77

Browse files
committed
Docs example for DSL IdempotentReceiver
1 parent 34ffd96 commit 0245e77

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/reference/asciidoc/handler-advice.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,5 +816,18 @@ public MessageHandler myService() {
816816
}
817817
----
818818

819+
And with the Java DSL, the interceptor is added to the endpoint's advice chain:
820+
821+
[source, java]
822+
----
823+
@Bean
824+
public IntegrationFlow flow() {
825+
...
826+
.handle("someBean", "someMethod",
827+
e -> e.advice(idempotentReceiverInterceptor())
828+
...
829+
}
830+
----
831+
819832
NOTE: The `IdempotentReceiverInterceptor` is designed only for the `MessageHandler.handleMessage(Message<?>)` method and starting with _version 4.3.1_ it implements `HandleMessageAdvice`, with the `AbstractHandleMessageAdvice` as a base class, for better dissociation.
820833
See <<handle-message-advice>> for more information.

0 commit comments

Comments
 (0)