Class ScatterGatherSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<ScatterGatherSpec, reactor.util.function.Tuple2<ConsumerEndpointFactoryBean, ScatterGatherHandler>>
org.springframework.integration.dsl.EndpointSpec<ScatterGatherSpec, ConsumerEndpointFactoryBean, ScatterGatherHandler>
org.springframework.integration.dsl.ConsumerEndpointSpec<ScatterGatherSpec, ScatterGatherHandler>
org.springframework.integration.dsl.ScatterGatherSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean, ScatterGatherHandler>>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public class ScatterGatherSpec
extends ConsumerEndpointSpec<ScatterGatherSpec, ScatterGatherHandler>
A 
GenericEndpointSpec extension for the ScatterGatherHandler.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- See Also:
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadviceChainFields inherited from class org.springframework.integration.dsl.EndpointSpeccomponentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionerrorChannel(String errorChannel) Specify aMessageChannelbean name for async error processing.gatherChannel(MessageChannel gatherChannel) Specify aMessageChannel(optional) which is used internally in theScatterGatherHandlerfor gathering (aggregate) results for scattered requests.gatherTimeout(long gatherTimeout) Specify a timeout (in milliseconds) for thePollableChannel.receive(long)operation to wait for gathering results to output.Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadvice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactionalMethods inherited from class org.springframework.integration.dsl.EndpointSpecassertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
ScatterGatherSpec
 
- 
- 
Method Details- 
gatherChannelSpecify aMessageChannel(optional) which is used internally in theScatterGatherHandlerfor gathering (aggregate) results for scattered requests.- Parameters:
- gatherChannel- the- MessageChannelfor gathering results.
- Returns:
- the current ScatterGatherSpecinstance.
 
- 
gatherTimeoutSpecify a timeout (in milliseconds) for thePollableChannel.receive(long)operation to wait for gathering results to output. Defaults to30seconds.- Parameters:
- gatherTimeout- the- PollableChannelreceive timeout.
- Returns:
- the current ScatterGatherSpecinstance.
 
- 
errorChannelSpecify aMessageChannelbean name for async error processing. Defaults toIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.- Parameters:
- errorChannel- the- MessageChannelbean name for async error processing.
- Returns:
- the current ScatterGatherSpecinstance.
- Since:
- 5.1.3
 
 
-