-
Notifications
You must be signed in to change notification settings - Fork 567
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
Introduce a Connection#createChannel alternative that returns an optional #431
Comments
Returning But here we have to consider it's a major API change, as it will affect applications as well as libraries depending on the Java client (Spring AMQP, Reactor RabbitMQ, PerfTest, etc)... including all our tests :-) And in practice, does It's definitely worth considering but it's not an easy question, let's sleep a bit on it. Note trying the change and updating all the tests would be a good to experiment. |
Of course it's a very rare occurrence for |
This is another option, but we'll have to come up with an appropriate name for it. |
How about |
That sounds good to me. |
This is a follow-up to #430. What if
Connection#createChannel
returned an optional, so instead of anull
when the max channel is reached it would be an empty result.@acogoluegnes feel free to close this if you don't think breaking the API is worth the trouble here.
The text was updated successfully, but these errors were encountered: