INT-3538: Docs for Scatter-Gather
JIRA: https://jira.spring.io/browse/INT-3538 Phase #1: `Scatter-Gather` S-G Doc Polishing INT-3538 Add `requires-reply` to `scatter-gather` Final S-G Doc Polish
This commit is contained in:
committed by
Gary Russell
parent
6f85509920
commit
af19bbfa70
@@ -111,6 +111,7 @@ public class ScatterGatherParser extends AbstractConsumerEndpointParser {
|
||||
|
||||
IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "gather-channel");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "gather-timeout");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "requires-reply");
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -4296,8 +4296,16 @@ The list of component name patterns you want to track (e.g., tracked-components
|
||||
<xsd:documentation>
|
||||
Allows to specify how long the Scatter-Gather will wait for reply Messages for gathering.
|
||||
By default it will wait indefinitely. Value is specified in milliseconds.
|
||||
It will be applied only if the 'gather-channel' is specified and it is some blocking channel,
|
||||
e.g. 'QueueChannel'.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="requires-reply" type="xsd:string" use="optional" default="true">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Specify whether the Scatter-Gather must return a non-null value. This value is
|
||||
'true' by default, hence a ReplyRequiredException will be thrown when
|
||||
the underlying aggregator returns a null value after 'gather-timeout'.
|
||||
Note, if 'null' is a possibility, the 'gather-timeout' should be specified to avoid an indefinite wait.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
|
||||
@@ -64,6 +64,7 @@ public class ScatterGatherParserTests {
|
||||
|
||||
Object reaper = this.beanFactory.getBean("reaper");
|
||||
assertSame(gatherer.getMessageStore(), TestUtils.getPropertyValue(reaper, "messageGroupStore"));
|
||||
assertTrue(TestUtils.getPropertyValue(scatterGather, "requiresReply", Boolean.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user