INT-3657: Default MaxMessPerPoll=1 for @InboundCA

JIRA: https://jira.spring.io/browse/INT-3657

With XML/DSL, the MMPP defaults to 1 (via the SPCAFB) but
@InboundChannelAdapter defaulted to -1 (infinity).

Change the annotation to be consistent with the XML/DSL.

Add missing schema docs for the `basePollerType`.

* Fix `AbstractMethodAnnotationPostProcessor` for `maxMessagesPerPollValue` override
* Change `EnableIntegrationTests#foo()` `@InboundChannelAdapter` to use `maxMessagesPerPoll = "2"`
and modify appropriate test-case to be sure that `maxMessagesPerPoll` isn't overriden as it has been done in the original commit.
This commit is contained in:
Gary Russell
2015-02-27 11:26:55 -05:00
committed by Artem Bilan
parent 14a5e1f9c5
commit 29e65e68af
9 changed files with 74 additions and 16 deletions

View File

@@ -47,5 +47,14 @@
See <xref linkend="tcp-events"/> for more information.
</para>
</section>
<section>
<title>@InboundChannelAdapter</title>
<para>
Previously, the <classname>@Poller</classname> on an inbound channel adapter defaulted
the <code>maxMessagesPerPoll</code> attribute to <code>-1</code> (infinity). This was inconsistent
with the XML configuration of <code>&lt;inbound-channel-adapter/&gt;</code>s, which defaults
to 1. The annotation now defaults this attribute to 1.
</para>
</section>
</section>
</chapter>