Skip to content

GH-3326: TCP: Support Unsolicited Server Messages #3327

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
merged 2 commits into from
Jul 6, 2020

Conversation

garyrussell
Copy link
Contributor

Resolves #3326

  • OB Gateway - send unsolicited messages and late replies to a channel
  • Support multiple TcpSenders

Resolves spring-projects#3326

- OB Gateway - send unsolicited messages and late replies to a channel
- Support multiple `TcpSender`s
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought first of all that this has to be supported via an ApplicationEvent support, but technically it doesn't matter that we are going to send them into some configured channel. This is similar to discardChannel in other places, but just with a different name and of course different purpose.

So, give me an answer to those my two minor concerns and we are good to go with merge!

Thank you!

@@ -114,6 +114,11 @@ public TcpOutboundGatewaySpec async(boolean async) {
return this;
}

public TcpOutboundGatewaySpec unsolictedMessageChannelName(String channelName) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you have there this setter as well setUnsolicitedMessageChannel(MessageChannel unsolicitedMessageChannel). Don't we need to have similar option here on DSL level?
Thanks

* @param replyChannel The reply channel.
*/
public void setReplyChannel(MessageChannel replyChannel) {
this.setOutputChannel(replyChannel);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this. on method calls?
I guess you have just moved those existing setter over here for better class structure.
Nevertheless can we fix this. as well since we are already here in a change?

@artembilan artembilan merged commit e919428 into spring-projects:master Jul 6, 2020
@garyrussell garyrussell deleted the GH-3326 branch July 6, 2020 21:52
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.

Enhance the TcpOutboundGateway to send late replies and other unsolicited messages to a message channel
2 participants