public class JmsInboundGateway extends MessagingGatewaySupport implements org.springframework.beans.factory.DisposableBean, OrderlyShutdownCapable
JmsMessageDrivenEndpoint implementing
MessagingGatewaySupport.IntegrationManagement.ManagementOverridesmessagingTemplatelifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
JmsInboundGateway(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener) |
| 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.
|
int |
beforeShutdown()
Called before shutdown begins.
|
void |
destroy() |
protected void |
doStart()
Subclasses must implement this method with the start behavior.
|
protected void |
doStop()
Subclasses must implement this method with the stop behavior.
|
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 |
setComponentName(java.lang.String componentName)
Sets the name of this component.
|
void |
setRequestChannel(org.springframework.messaging.MessageChannel requestChannel)
Set the request channel.
|
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, getReplyChannel, getRequestChannel, isCountsEnabled, isLoggingEnabled, receive, receive, receiveMessage, receiveMessage, registerReplyMessageCorrelatorIfNecessary, reset, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, setCountsEnabled, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrackdoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setBeanFactory, setBeanName, setChannelResolver, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamesetCounterregisterMetricsCaptorpublic JmsInboundGateway(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener)
public void setRequestChannel(org.springframework.messaging.MessageChannel requestChannel)
MessagingGatewaySupportsetRequestChannel in class MessagingGatewaySupportrequestChannel - the channel to which request messages will be sentpublic java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class MessagingGatewaySupportpublic void setComponentName(java.lang.String componentName)
IntegrationObjectSupportsetComponentName in class IntegrationObjectSupportcomponentName - The component name.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.BeansExceptionprotected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class MessagingGatewaySupportjava.lang.Exception - Any exception.public ChannelPublishingJmsMessageListener getListener()
protected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class MessagingGatewaySupportprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class MessagingGatewaySupportpublic 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