-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
ReactorNettyTcpClient constructor with callback to initialize TcpClient [SPR-17523] #22055
Comments
Rossen Stoyanchev commented The Reactor Netty config API changed from 0.7 to 0.8. We lost the builder to an immutable pattern with config methods returning a new instance of TcpClient. You still have the constructor taking I'll add a constructor with those semantics. Something like this: public ReactorNettyTcpClient(Function<TcpClient, TcpClient> configurer, ReactorNettyCodec<P> codec) {
// ...
} So you could then: new ReactorNettyTcpClient(client -> client.addressSupplier(...), codec); I'll also update the sample in the docs. |
I think I got it:
|
Is the above solution works with spring boot 1.5.X ? |
I don't believe so, but I would recommend to upgrade to 2.3.4 if you can. |
But I cannot see a method called
so I cannot add all hosts in the rabbitMQ cluster, It would be a big help if you can comment on my situation. Dependencies(build.gradle):
|
@sharunthomas as mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. For questions, please follow-up on StackOverflow. Note also that Spring Boot |
@sharunthomas
|
Gabriel Dogaru opened SPR-17523 and commented
This is the same issue as #17057
The solution there does not apply anymore because that constructor was removed in this commit ffbc75a#diff-11144739384955df1f8f38cbcde8d95b
Affects: 5.1.2
Reference URL: #17057
Issue Links:
Referenced from: commits 24848ec
The text was updated successfully, but these errors were encountered: