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/handler-advice.adoc
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,9 @@ In addition to providing the general mechanism to apply AOP advice classes, Spri
57
57
* `RateLimiterRequestHandlerAdvice` (described in <<rate-limiter-advice>>)
58
58
* `CacheRequestHandlerAdvice` (described in <<cache-advice>>)
59
59
* `ReactiveRequestHandlerAdvice` (described in <<reactive-advice>>)
60
+
* `ContextHolderRequestHandlerAdvice` (described in <<context-holder-advice>>)
61
+
62
+
[[expression-advice]]
60
63
61
64
[[retry-advice]]
62
65
===== Retry Advice
@@ -571,6 +574,29 @@ The `message` argument is the request message for the message handler and can be
571
574
The `mono` argument is the result of this message handler's `handleRequestMessage()` method implementation.
572
575
A nested `Mono.transform()` can also be called from this function to apply, for example, a https://spring.io/projects/spring-cloud-circuitbreaker[Reactive Circuit Breaker].
573
576
577
+
[[context-holder-advice]]
578
+
==== Context Holder Advice
579
+
Starting with version 6.1, the `ContextHolderRequestHandlerAdvice` has been introduced.
580
+
Similar to the functionality introduced by the `DelegatingSessionFactory`, this advice provides the ability
581
+
to take a specific key from the request message and store it in the context holder.
582
+
The value of this key is then used in the `MessageHandler` implementation to perform some predefined logic.
583
+
This key/value pair can be cleared from the context holder after the operation has been completed.
0 commit comments