public class ScatterGatherHandler extends AbstractReplyProducingMessageHandler implements Lifecycle
MessageHandler implementation for the
Scatter-Gather EIP pattern.AbstractReplyProducingMessageHandler.RequestHandlermessagingTemplateloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ScatterGatherHandler(MessageChannel scatterChannel,
MessageHandler gatherer) |
ScatterGatherHandler(MessageHandler scatterer,
MessageHandler gatherer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
boolean |
isRunning() |
void |
setGatherChannel(MessageChannel gatherChannel) |
void |
setGatherTimeout(long gatherTimeout) |
void |
start() |
void |
stop() |
doInvokeAdvisedRequestHandler, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplygetOutputChannel, produceOutput, sendOutputs, setChannelResolver, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutputgetComponentType, getOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic ScatterGatherHandler(MessageChannel scatterChannel, MessageHandler gatherer)
public ScatterGatherHandler(MessageHandler scatterer, MessageHandler gatherer)
public void setGatherChannel(MessageChannel gatherChannel)
public void setGatherTimeout(long gatherTimeout)
protected void doInit()
doInit in class AbstractReplyProducingMessageHandlerprotected Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandlerhandleRequestMessage in class AbstractReplyProducingMessageHandlerrequestMessage - The request message.null.