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

@InboundChannelAdapter Should Set MaxMessagesPerPoll to 1 by Default [INT-3657] #7617

Closed
spring-operator opened this issue Feb 25, 2015 · 2 comments
Assignees
Milestone

Comments

@spring-operator
Copy link
Contributor

Gary Russell opened INT-3657 and commented

SPCA configured using xml gets max-messages-per-poll="1" by default.

@Bean
@InboundChannelAdapter(value = "fooChannel", poller = @Poller(fixedDelay="5000"))
public MessageSource<?> foo() {
...
}

Does not.


Referenced from: pull request #1391

@spring-operator
Copy link
Contributor Author

Artem Bilan commented

Since basePollerType has just this:

<xsd:attribute name="max-messages-per-poll" type="xsd:string" />

With this fix we must add some description for this attribute and point that it is 1 for inbound-channel-adapter and -1 for any other PollingConsumer.
Consider the same for maxMessagesPerPoll attribute of the @Poller

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Yes; it's already talked about in the reference document but it's not mentioned in the schema docs; in fact the schema docs for basePollerType are very lacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants