Skip to content

Add Connection#openChannel to return Optional<Channel> #433

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

acogoluegnes
Copy link
Contributor

Introduces 2 methods in Connection to return a newly-opened channel wrapped in an Optional. They're implemented as default interface methods, because we can come up with a reasonable default behavior (just calling Connection#createChannel and wrapping the result). So this can go in 5.x, not only 6.0.

Fixes #431

@michaelklishin michaelklishin merged commit c1f400e into master Dec 17, 2018
@acogoluegnes acogoluegnes deleted the rabbitmq-java-client-431-create-channel-with-optional branch March 21, 2019 08:25
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.

2 participants