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, handler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
ScatterGatherSpec(ScatterGatherHandler messageHandler)
-
Method Summary
Modifier and Type Method Description ScatterGatherSpec
errorChannel(String errorChannel)
Specify aMessageChannel
bean name for async error processing.ScatterGatherSpec
gatherChannel(MessageChannel gatherChannel)
Specify aMessageChannel
(optional) which is used internally in theScatterGatherHandler
for gathering (aggregate) results for scattered requests.ScatterGatherSpec
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, transactional
Methods inherited from class org.springframework.integration.dsl.EndpointSpec
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods 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 theScatterGatherHandler
for gathering (aggregate) results for scattered requests.- Parameters:
gatherChannel
- theMessageChannel
for gathering results.- Returns:
- the current
ScatterGatherSpec
instance.
-
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
- thePollableChannel
receive timeout.- Returns:
- the current
ScatterGatherSpec
instance.
-
errorChannel
Specify aMessageChannel
bean name for async error processing. Defaults toIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME
.- Parameters:
errorChannel
- theMessageChannel
bean name for async error processing.- Returns:
- the current
ScatterGatherSpec
instance. - Since:
- 5.1.3
-