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 Summary
Fields inherited from class ConsumerEndpointSpec
adviceChainFields inherited from class EndpointSpec
componentsToRegister, endpointFactoryBean, handlerFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface 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 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 EndpointSpec
getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
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
-