Class ScatterGatherSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
org.springframework.integration.dsl.ConsumerEndpointSpec<ScatterGatherSpec,ScatterGatherHandler>
org.springframework.integration.dsl.ScatterGatherSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,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:
ScatterGatherHandler
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedScatterGatherSpec(ScatterGatherHandler messageHandler) -
Method Summary
Modifier and Type Method Description ScatterGatherSpecerrorChannel(String errorChannel)Specify aMessageChannelbean name for async error processing.ScatterGatherSpecgatherChannel(MessageChannel gatherChannel)Specify aMessageChannel(optional) which is used internally in theScatterGatherHandlerfor gathering (aggregate) results for scattered requests.ScatterGatherSpecgatherTimeout(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, 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, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
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 to-1- to wait indefinitely.- 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
-