public abstract class MessageProducerSupport extends AbstractEndpoint implements MessageProducer, TrackableComponent, SmartInitializingSingleton
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
Modifier | Constructor and Description |
---|---|
protected |
MessageProducerSupport() |
Modifier and Type | Method and Description |
---|---|
void |
afterSingletonsInstantiated() |
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
MessageChannel |
getErrorChannel()
Return the error channel (if provided) to which error messages will
be routed.
|
protected MessagingTemplate |
getMessagingTemplate() |
MessageChannel |
getOutputChannel()
Return the the output channel.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected void |
sendMessage(Message<?> message) |
void |
setErrorChannel(MessageChannel errorChannel) |
void |
setErrorChannelName(String errorChannelName)
Set the error channel name.
|
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setOutputChannelName(String outputChannelName)
Set the output channel name; overrides
outputChannel if provided. |
void |
setSendTimeout(long sendTimeout) |
void |
setShouldTrack(boolean shouldTrack) |
doStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName, getComponentType
public void setOutputChannel(MessageChannel outputChannel)
MessageProducer
setOutputChannel
in interface MessageProducer
outputChannel
- The output channel.public void setOutputChannelName(String outputChannelName)
outputChannel
if provided.outputChannelName
- the channel name.public MessageChannel getOutputChannel()
MessageProducer
getOutputChannel
in interface MessageProducer
public void setErrorChannel(MessageChannel errorChannel)
public void setErrorChannelName(String errorChannelName)
errorChannelName
- The error channel bean name.public MessageChannel getErrorChannel()
public void setSendTimeout(long sendTimeout)
public void setShouldTrack(boolean shouldTrack)
setShouldTrack
in interface TrackableComponent
protected MessagingTemplate getMessagingTemplate()
public void afterSingletonsInstantiated()
afterSingletonsInstantiated
in interface SmartInitializingSingleton
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void doStart()
doStart
in class AbstractEndpoint
protected void doStop()
doStop
in class AbstractEndpoint
protected void sendMessage(Message<?> message)