public class JmsMessageDrivenEndpoint extends MessageProducerSupport implements org.springframework.beans.factory.DisposableBean, OrderlyShutdownCapable
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener)
Construct an instance with an externally configured container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
afterShutdown()
Called after normal shutdown of schedulers, executors etc,
and after the shutdown delay has elapsed, but before any
forced shutdown of any remaining active scheduler/executor
threads.Can optionally return the number of active messages
still in process.
|
void |
afterSingletonsInstantiated() |
int |
beforeShutdown()
Called before shutdown begins.
|
void |
destroy() |
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
ChannelPublishingJmsMessageListener |
getListener() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setErrorChannel(org.springframework.messaging.MessageChannel errorChannel) |
void |
setErrorChannelName(java.lang.String errorChannelName)
Set the error channel name.
|
void |
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent.
|
void |
setOutputChannelName(java.lang.String outputChannelName)
Set the output channel name; overrides
outputChannel if provided. |
void |
setSendTimeout(long sendTimeout)
Configure the default timeout value to use for send operations.
|
void |
setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode)
Set the session acknowledge mode on the listener container.
|
void |
setShouldTrack(boolean shouldTrack) |
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorMessageStrategydoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener)
listenerContainer - the container.listener - the listener.public void setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode)
DefaultMessageListenerContainer.sessionAcknowledgeMode - the acknowledge mode.public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
MessageProducersetOutputChannel in interface MessageProducersetOutputChannel in class MessageProducerSupportoutputChannel - The output channel.public void setOutputChannelName(java.lang.String outputChannelName)
MessageProducerSupportoutputChannel if provided.setOutputChannelName in class MessageProducerSupportoutputChannelName - the channel name.public void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel)
setErrorChannel in class MessageProducerSupportpublic void setErrorChannelName(java.lang.String errorChannelName)
MessageProducerSupportsetErrorChannelName in class MessageProducerSupporterrorChannelName - The error channel bean name.public void setSendTimeout(long sendTimeout)
MessageProducerSupportsetSendTimeout in class MessageProducerSupportsendTimeout - the send timeout in millisecondsGenericMessagingTemplate.setSendTimeout(long)public void setShouldTrack(boolean shouldTrack)
setShouldTrack in interface TrackableComponentsetShouldTrack in class MessageProducerSupportpublic ChannelPublishingJmsMessageListener getListener()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class IntegrationObjectSupportorg.springframework.beans.BeansExceptionpublic java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonafterSingletonsInstantiated in class MessageProducerSupportprotected void onInit()
IntegrationObjectSupportonInit in class MessageProducerSupportprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupportpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class AbstractEndpointjava.lang.Exceptionpublic int beforeShutdown()
OrderlyShutdownCapablebeforeShutdown in interface OrderlyShutdownCapablepublic int afterShutdown()
OrderlyShutdownCapableafterShutdown in interface OrderlyShutdownCapable