public abstract class AbstractMessageProducingHandler extends AbstractMessageHandler implements MessageProducer
AbstractMessageHandler
implementation for the MessageProducer
.Modifier and Type | Field and Description |
---|---|
protected MessagingTemplate |
messagingTemplate |
logger
HIGHEST_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.
|
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setOutputChannelName(String outputChannelName) |
void |
setSendTimeout(long sendTimeout)
Set the timeout for sending reply Messages.
|
getComponentType, getOrder, handleMessage, handleMessageInternal, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
protected final MessagingTemplate messagingTemplate
public void setSendTimeout(long sendTimeout)
sendTimeout
- The send timeout.public void setOutputChannel(MessageChannel outputChannel)
MessageProducer
setOutputChannel
in interface MessageProducer
outputChannel
- The output channel.public void setOutputChannelName(String outputChannelName)
protected void onInit() throws Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
Exception
- Any exception.public MessageChannel getOutputChannel()