-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feature Request - handleReactive(ReactiveMessageHandler) #3763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just to clarify: such an operator indeed going to be based on the |
I also think that it would be useful to let the user choose how exactly to subscribe, and to manage |
The |
@artembilan I think this issue talks about a correct point.. You currently can not access a flux and end the flow through it by yourself. This is really a blocker when it comes to developing custom outbound channel adapters or just custom reactive code. In this manner, I think Reactive Spring Integration is very problematic. The solution may be to create a In my point of view, if Spring Integration enables this, it can easily become the 'project reactor framework' - a thing that lots of people would use happily. |
In general, @artembilan, is it currently possible to subscribe manually? I think a built-in feature for this can provide a lot of flexibility to the reactive spring integration users |
There is already something like
I even mentioned this in the SO you are pointing to. This particular issue is exactly for the |
Fixes spring-projects#3763 Add a convenient terminal operator to `BaseIntegrationFlowDefinition` based on a `ReactiveMessageHandler`. Also add an overload like `handleReactive(ReactiveMessageHandlerSpec)` to let end-user to choose a protocol-specific channel adapter
Fixes spring-projects#3763 Add a convenient terminal operator to `BaseIntegrationFlowDefinition` based on a `ReactiveMessageHandler`. Also add an overload like `handleReactive(ReactiveMessageHandlerSpec)` to let end-user to choose a protocol-specific channel adapter
* GH-3763: Add `handleReactive()` for Java DSL Fixes #3763 Add a convenient terminal operator to `BaseIntegrationFlowDefinition` based on a `ReactiveMessageHandler`. Also add an overload like `handleReactive(ReactiveMessageHandlerSpec)` to let end-user to choose a protocol-specific channel adapter * * Fix `Namespace Factory` wording in the `BaseIntegrationFlowDefinition` Javadocs * Fix language in Docs Co-authored-by: Gary Russell <[email protected]> --------- Co-authored-by: Gary Russell <[email protected]>
Expected Behavior
I'd like there to be a reactive
handleReactive(ReactiveMessageHandler)
operator that will enable me to easily write reactive code as a handler.Current Behavior
There is a need to use the
ReactiveMessageHandlerAdapter
class and write the code inside of it.Context
The workaround is pretty simple, but an implementation of such a function seems to be pretty simple either. Here's a SO question to support the issue.
The text was updated successfully, but these errors were encountered: