Skip to content

GH-922: Add Batch-mode @RabbitListener #980

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
Apr 12, 2019

Conversation

garyrussell
Copy link
Contributor

Resolves #922

  • remove unnecessary back-ticks from literal table columns

Resolves spring-projects#922

- remove unnecessary back-ticks from literal table columns
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 think that's all. Just a couple nit-picks.

I can fix them on merge. Just let me know!

.acceptIfNotNull(endpoint.getTaskExecutor(), instance::setTaskExecutor);
.acceptIfNotNull(endpoint.getAutoStartup(), instance::setAutoStartup)
.acceptIfNotNull(endpoint.getTaskExecutor(), instance::setTaskExecutor);
javaUtils
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 this can be combined with the previous chain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it was a bit dirty to do that since the property receiver is a different object; I kept changing my mind but ended up with this.

Feel free to change if you feel strongly.

this.batchingStrategy = batchingStrategy;
}

@SuppressWarnings("deprecation")
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't look like there is some in the method below to suppress.

return new GenericMessage<>(messages);
}
else {
List<Object> list = new ArrayList<Object>();
Copy link
Member

Choose a reason for hiding this comment

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

We can use diamond operator.


public static class Listener {

List<Foo> foos;
Copy link
Member

Choose a reason for hiding this comment

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

Time to ditch foos and bars? 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While I understand Jay's point about docs, I don't think we have to change all of our tests.

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.

Support Batch @RabbitListener
2 participants