public class ScatterGatherSpec extends ConsumerEndpointSpec<ScatterGatherSpec,ScatterGatherHandler>
GenericEndpointSpec
extension for the ScatterGatherHandler
.ScatterGatherHandler
adviceChain
componentsToRegister, endpointFactoryBean, handler
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
ScatterGatherSpec(ScatterGatherHandler messageHandler) |
Modifier and Type | Method and Description |
---|---|
ScatterGatherSpec |
errorChannel(String errorChannel)
Specify a
MessageChannel bean name for async error processing. |
ScatterGatherSpec |
gatherChannel(MessageChannel gatherChannel)
Specify a
MessageChannel (optional) which is used internally
in the ScatterGatherHandler for gathering (aggregate) results for scattered requests. |
ScatterGatherSpec |
gatherTimeout(long gatherTimeout)
Specify a timeout (in milliseconds) for the
PollableChannel.receive(long) operation
to wait for gathering results to output. |
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactional
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected ScatterGatherSpec(ScatterGatherHandler messageHandler)
public ScatterGatherSpec gatherChannel(MessageChannel gatherChannel)
MessageChannel
(optional) which is used internally
in the ScatterGatherHandler
for gathering (aggregate) results for scattered requests.gatherChannel
- the MessageChannel
for gathering results.ScatterGatherSpec
instance.public ScatterGatherSpec gatherTimeout(long gatherTimeout)
PollableChannel.receive(long)
operation
to wait for gathering results to output.
Defaults to -1
- to wait indefinitely.gatherTimeout
- the PollableChannel
receive timeout.ScatterGatherSpec
instance.public ScatterGatherSpec errorChannel(String errorChannel)
MessageChannel
bean name for async error processing. Defaults to
IntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME
.errorChannel
- the MessageChannel
bean name for async error
processing.ScatterGatherSpec
instance.