public abstract class MessageProducerSupport extends AbstractEndpoint implements MessageProducer, TrackableComponent
logger
Constructor and Description |
---|
MessageProducerSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected void |
sendMessage(Message<?> message) |
void |
setErrorChannel(MessageChannel errorChannel) |
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setSendTimeout(long sendTimeout) |
void |
setShouldTrack(boolean shouldTrack) |
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName, getComponentType
public void setOutputChannel(MessageChannel outputChannel)
MessageProducer
setOutputChannel
in interface MessageProducer
public void setErrorChannel(MessageChannel errorChannel)
public void setSendTimeout(long sendTimeout)
public void setShouldTrack(boolean shouldTrack)
setShouldTrack
in interface TrackableComponent
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)