Skip to content

Optimize MessageTriggerAction for Java DSL #8595

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

Merged

Conversation

artembilan
Copy link
Member

Currently, the MessageTriggerAction.trigger is configured on the BaseIntegrationFlowDefinition to be called via reflection in the MessagingMethodInvokerHelper

  • Represent a MessageTriggerAction.trigger as a Consumer<Message<?>> method reference and use a LambdaMessageProcessor for direct call
  • Add a Consumer support for LambdaMessageProcessor

Currently, the `MessageTriggerAction.trigger` is configured
on the `BaseIntegrationFlowDefinition` to be called via reflection
in the `MessagingMethodInvokerHelper`

* Represent a `MessageTriggerAction.trigger` as a `Consumer<Message<?>>` method reference
and use a `LambdaMessageProcessor` for direct call
* Add a `Consumer` support for `LambdaMessageProcessor`
@artembilan artembilan added this to the 6.1.0-RC1 milestone Apr 13, 2023
@garyrussell garyrussell merged commit aaaa489 into spring-projects:main Apr 13, 2023
@artembilan artembilan deleted the DSL_optimize_trigger_call branch April 13, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants