Skip to content
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

GH-8705 Expose errorOnTimeout on MessagingGateway #8712

Closed
wants to merge 2 commits into from

Conversation

artembilan
Copy link
Member

Fixes #8705

an internal MethodInvocationGateway is a MessagingGatewaySupport extension with all the logic available there.
One of the option introduced in 5.2.2 to be able to throw a MessageTimeoutException instead of returning null when no reply received in time from downstream flow

  • Expose an errorOnTimeout on the @MessagingGateway and GatewayEndpointSpec
  • Propagate this option from a GatewayProxyFactoryBean down to its internal MethodInvocationGateway implementation
  • Modify couple tests to react for errorOnTimeout set to true
  • Document the feature

Fixes spring-projects#8705

an internal `MethodInvocationGateway` is a `MessagingGatewaySupport`
extension with all the logic available there.
One of the option introduced in `5.2.2` to be able to throw a `MessageTimeoutException`
instead of returning `null` when no reply received in time from downstream flow

* Expose an `errorOnTimeout` on the `@MessagingGateway` and `GatewayEndpointSpec`
* Propagate this option from a `GatewayProxyFactoryBean` down to its internal
`MethodInvocationGateway` implementation
* Modify couple tests to react for `errorOnTimeout` set to `true`
* Document the feature
@artembilan artembilan requested a review from garyrussell August 22, 2023 16:34
Co-authored-by: Gary Russell <grussell@vmware.com>
@artembilan artembilan requested a review from garyrussell August 22, 2023 20:50
@garyrussell
Copy link
Contributor

Please rebase and feel free to merge.

@artembilan
Copy link
Member Author

Merged as 4e310bb after fixing conflicts.

@artembilan artembilan closed this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send the gateway Timeout Exception into the errorChannel and not a TemporaryReplyChannel
2 participants