INT-2595: Add Time-Based ReleaseStrategy Option

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

* Add `group-timeout` and `group-timeout-expression` to the Correlation Endpoint
* Add logic to the `AbstractCorrelatingMessageHandler` to schedule group for `forceComplete`,
when the target `ReleaseStrategy` returns `false`

INT-2595: Polishing according PR comments

INT-2595: Expose `lock-registry` and further docs

INT-2595 Doc and Test Polishing

INT-2595: Fix typos

INT-2595 More Minor Doc Polish
This commit is contained in:
Artem Bilan
2014-04-02 14:03:18 +03:00
committed by Gary Russell
parent 882da62ba0
commit eb0d1ddc84
9 changed files with 388 additions and 21 deletions

View File

@@ -52,8 +52,13 @@
release-strategy="releaseStrategyBean" ]]><co id="resxml14-co" linkends="resxml14" /><![CDATA[
release-strategy-method="release" ]]><co id="resxml15-co" linkends="resxml15" /><![CDATA[
release-strategy-expression="size() == 10" ]]><co id="resxml16-co" linkends="resxml16" /><![CDATA[
empty-group-min-timeout="60000" />]]><co id="resxml17-co" linkends="resxml17" /></programlisting>
empty-group-min-timeout="60000" ]]><co id="resxml17-co" linkends="resxml17" /><![CDATA[
lock-registry="lockRegistry" ]]><co id="resxml18" /><![CDATA[
group-timeout="60000" ]]><co id="resxml19" /><![CDATA[
group-timeout-expression="size() ge 2 ? 100 : -1" ]]><co id="resxml20" /><![CDATA[
scheduler="taskScheduler" /> ]]><co id="resxml21" /></programlisting>
<para><calloutlist>
<callout arearefs="resxml1-co" id="resxml1">
<para>The id of the resequencer is
@@ -160,7 +165,27 @@
empty group will also be affected by the reaper's <emphasis>timeout</emphasis>
property and it could be as much as this value plus the timeout.</para>
</callout>
<callout arearefs="resxml18">
<para>
See <xref linkend="aggregator-xml"/>.
</para>
</callout>
<callout arearefs="resxml19">
<para>
See <xref linkend="aggregator-xml"/>.
</para>
</callout>
<callout arearefs="resxml20">
<para>
See <xref linkend="aggregator-xml"/>.
</para>
</callout>
<callout arearefs="resxml21">
<para>
See <xref linkend="aggregator-xml"/>.
</para>
</callout>
</calloutlist></para>
<note>