public abstract class AbstractMessageProducingHandler extends AbstractMessageHandler implements MessageProducer
AbstractMessageHandler implementation for the MessageProducer.| Modifier and Type | Field and Description |
|---|---|
protected MessagingTemplate |
messagingTemplate |
loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AbstractMessageProducingHandler() |
| Modifier and Type | Method and Description |
|---|---|
MessageChannel |
getOutputChannel() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected void |
produceOutput(java.lang.Object reply,
Message<?> requestMessage) |
protected void |
sendOutputs(java.lang.Object result,
Message<?> requestMessage) |
void |
setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
Set the DestinationResolver<MessageChannel> to be used when there is no default output channel.
|
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setOutputChannelName(java.lang.String outputChannelName) |
void |
setSendTimeout(long sendTimeout)
Set the timeout for sending reply Messages.
|
protected boolean |
shouldCopyRequestHeaders()
Subclasses may override this.
|
protected boolean |
shouldSplitOutput(java.lang.Iterable<?> reply) |
getComponentType, getOrder, handleMessage, handleMessageInternal, 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, waitgetComponentNameprotected final MessagingTemplate messagingTemplate
public void setSendTimeout(long sendTimeout)
sendTimeout - The send timeout.public void setOutputChannel(MessageChannel outputChannel)
MessageProducersetOutputChannel in interface MessageProduceroutputChannel - The output channel.public void setOutputChannelName(java.lang.String outputChannelName)
public void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
channelResolver - The channel resolver.protected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class IntegrationObjectSupportjava.lang.Exception - Any exception.public MessageChannel getOutputChannel()
protected void sendOutputs(java.lang.Object result,
Message<?> requestMessage)
protected boolean shouldSplitOutput(java.lang.Iterable<?> reply)
protected void produceOutput(java.lang.Object reply,
Message<?> requestMessage)
protected boolean shouldCopyRequestHeaders()