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
A
GenericEndpointSpec extension for the ScatterGatherHandler.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- See Also:
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpec
adviceChainFields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ConsumerEndpointSpec
advice, 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.EndpointSpec
assertHandler, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
ScatterGatherSpec
-
-
Method Details
-
gatherChannel
Specify aMessageChannel(optional) which is used internally in theScatterGatherHandlerfor gathering (aggregate) results for scattered requests.- Parameters:
gatherChannel- theMessageChannelfor gathering results.- Returns:
- the current
ScatterGatherSpecinstance.
-
gatherTimeout
Specify a timeout (in milliseconds) for thePollableChannel.receive(long)operation to wait for gathering results to output. Defaults to30seconds.- Parameters:
gatherTimeout- thePollableChannelreceive timeout.- Returns:
- the current
ScatterGatherSpecinstance.
-
errorChannel
Specify aMessageChannelbean name for async error processing. Defaults toIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.- Parameters:
errorChannel- theMessageChannelbean name for async error processing.- Returns:
- the current
ScatterGatherSpecinstance. - Since:
- 5.1.3
-