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

CE-1925: Update AMQPPublishProperties class to enable setting of timeout and confirmEnabled properties #135

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

jonhanley
Copy link
Contributor

Primary change is to update AMQPPublishProperties so that the timeout and confirmEnabled properties can be set when publishing a message with override publish properties. The constructor setting these properties had been set as package-private.

Also

  • added a builder to AMQPMessageBundle
  • removed unnecessary public modifiers from Jupiter (JUnit 5) unit tests
  • resolved "Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception" issues in some unit tests

… confirmEnabled properties when overriding during a message publish. Also added builder to AMQPMessageBundle class
…vocation possibly throwing a runtime exception" issues in unit tests

AMQPPublishProperties(String exchange, String routingKey, long timeout, boolean confirmEnabled) {
public AMQPPublishProperties(String exchange, String routingKey) {
Copy link
Member

Choose a reason for hiding this comment

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

Should this one be private now? We could force folks to move to the builder when upgrading

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opted to go with a non-breaking change, influence mostly by this being a public repo. But happy to change.

On review I'm actually thinking it might be a good idea for this to catch people to make them think about if their publisher config is being overridden here

…es builder usage. Limited parameter constructor could also result in inadvertent overriding of constructed publisher config at publish time
Copy link

@stephen-runway stephen-runway left a comment

Choose a reason for hiding this comment

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

👍

@jonhanley jonhanley merged commit 2b953d5 into master Mar 13, 2024
2 checks passed
@jonhanley jonhanley deleted the CE-1925_publish_properties branch March 13, 2024 14:27
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.

3 participants