-
Notifications
You must be signed in to change notification settings - Fork 636
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
Conversation
Resolves spring-projects#922 - remove unnecessary back-ticks from literal table columns
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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>(); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
? 😉
There was a problem hiding this comment.
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.
Resolves #922