public class JmsMessageDrivenEndpoint extends MessageProducerSupport implements OrderlyShutdownCapable
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| Constructor and Description |
|---|
JmsMessageDrivenEndpoint(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()
Take no action by default.
|
protected void |
doStop()
Take no action by default.
|
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(ApplicationContext applicationContext) |
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)
Configure the default timeout value to use for send operations.
|
void |
setSessionAcknowledgeMode(String sessionAcknowledgeMode)
Set the session acknowledge mode on the listener container.
|
void |
setShouldTrack(boolean shouldTrack) |
void |
setShutdownContainerOnStop(boolean shutdownContainerOnStop)
Set to false to prevent listener container shutdown when the endpoint is stopped.
|
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorMessageStrategy, subscribeToPublisherdoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanName, getComponentNamepublic JmsMessageDrivenEndpoint(AbstractMessageListenerContainer listenerContainer, ChannelPublishingJmsMessageListener listener)
listenerContainer - the container.listener - the listener.public void setSessionAcknowledgeMode(String sessionAcknowledgeMode)
DefaultMessageListenerContainer.sessionAcknowledgeMode - the acknowledge mode.public void setOutputChannel(MessageChannel outputChannel)
MessageProducerMessageChannel to which produced Messages should be sent.setOutputChannel in interface MessageProducersetOutputChannel in class MessageProducerSupportoutputChannel - The output channel.public void setOutputChannelName(String outputChannelName)
MessageProducerSupportoutputChannel if provided.setOutputChannelName in interface MessageProducersetOutputChannelName in class MessageProducerSupportoutputChannelName - the channel name.public void setErrorChannel(MessageChannel errorChannel)
setErrorChannel in class MessageProducerSupportpublic void setErrorChannelName(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 void setShutdownContainerOnStop(boolean shutdownContainerOnStop)
shutdownContainerOnStop - false to not shutdown.public ChannelPublishingJmsMessageListener getListener()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwaresetApplicationContext in class IntegrationObjectSupportBeansExceptionpublic String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface SmartInitializingSingletonafterSingletonsInstantiated in class MessageProducerSupportprotected void onInit()
IntegrationObjectSupportonInit in class MessageProducerSupportprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupportpublic void destroy()
destroy in interface DisposableBeandestroy in class AbstractEndpointpublic int beforeShutdown()
OrderlyShutdownCapablebeforeShutdown in interface OrderlyShutdownCapablepublic int afterShutdown()
OrderlyShutdownCapableafterShutdown in interface OrderlyShutdownCapable