public class JmsInboundGateway extends MessagingGatewaySupport implements DisposableBean, OrderlyShutdownCapable
JmsMessageDrivenEndpoint implementing
MessagingGatewaySupport.IntegrationManagement.ManagementOverridesmessagingTemplatelifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEDEFAULT_PHASE| Constructor and Description |
|---|
JmsInboundGateway(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.
|
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 |
setComponentName(String componentName)
Sets the name of this component.
|
void |
setErrorChannel(MessageChannel errorChannel)
Set the error channel.
|
void |
setErrorChannelName(String errorChannelName)
Set the error channel name.
|
void |
setReplyChannel(MessageChannel replyChannel)
Set the reply channel.
|
void |
setReplyChannelName(String replyChannelName)
Set the reply channel name.
|
void |
setReplyTimeout(long replyTimeout)
Set the timeout value for receiving reply messages.
|
void |
setRequestChannel(MessageChannel requestChannel)
Set the request channel.
|
void |
setRequestChannelName(String requestChannelName)
Set the request channel name.
|
void |
setRequestTimeout(long requestTimeout)
Set the timeout value for sending request messages.
|
void |
setShouldTrack(boolean shouldTrack)
Specify whether this gateway should be tracked in the Message History
of Messages that originate from its send or sendAndReceive operations.
|
void |
setShutdownContainerOnStop(boolean shutdownContainerOnStop)
Set to false to prevent listener container shutdown when the endpoint is stopped.
|
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, getReplyChannel, getRequestChannel, isCountsEnabled, isLoggingEnabled, receive, receive, receiveMessage, receiveMessage, registerReplyMessageCorrelatorIfNecessary, reset, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, setCountsEnabled, setErrorMessageStrategy, setLoggingEnabled, setManagedName, setManagedType, setReplyMapper, setRequestMapperdoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setBeanFactory, setBeanName, setChannelResolver, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanName, getComponentNameregisterMetricsCaptorpublic JmsInboundGateway(AbstractMessageListenerContainer listenerContainer, ChannelPublishingJmsMessageListener listener)
public void setRequestChannel(MessageChannel requestChannel)
MessagingGatewaySupportsetRequestChannel in class MessagingGatewaySupportrequestChannel - the channel to which request messages will be sentpublic void setRequestChannelName(String requestChannelName)
MessagingGatewaySupportsetRequestChannelName in class MessagingGatewaySupportrequestChannelName - the channel bean name to which request messages will be sentpublic void setReplyChannel(MessageChannel replyChannel)
MessagingGatewaySupportsetReplyChannel in class MessagingGatewaySupportreplyChannel - the channel from which reply messages will be receivedpublic void setReplyChannelName(String replyChannelName)
MessagingGatewaySupportsetReplyChannelName in class MessagingGatewaySupportreplyChannelName - the channel bean name from which reply messages will be receivedpublic void setErrorChannel(MessageChannel errorChannel)
MessagingGatewaySupportsetErrorChannel in class MessagingGatewaySupporterrorChannel - The error channel.public void setErrorChannelName(String errorChannelName)
MessagingGatewaySupportsetErrorChannelName in class MessagingGatewaySupporterrorChannelName - The error channel bean name.public void setRequestTimeout(long requestTimeout)
MessagingGatewaySupportsetRequestTimeout in class MessagingGatewaySupportrequestTimeout - the timeout value in millisecondspublic void setReplyTimeout(long replyTimeout)
MessagingGatewaySupportsetReplyTimeout in class MessagingGatewaySupportreplyTimeout - the timeout value in millisecondspublic void setShouldTrack(boolean shouldTrack)
MessagingGatewaySupportsetShouldTrack in interface TrackableComponentsetShouldTrack in class MessagingGatewaySupportpublic void setShutdownContainerOnStop(boolean shutdownContainerOnStop)
shutdownContainerOnStop - false to not shutdown.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class MessagingGatewaySupportpublic void setComponentName(String componentName)
IntegrationObjectSupportsetComponentName in class IntegrationObjectSupportcomponentName - The component name.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwaresetApplicationContext in class IntegrationObjectSupportBeansExceptionprotected void onInit()
IntegrationObjectSupportonInit in class MessagingGatewaySupportpublic ChannelPublishingJmsMessageListener getListener()
protected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStart in class MessagingGatewaySupportprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.doStop in class MessagingGatewaySupportpublic void destroy()
destroy in interface DisposableBeandestroy in class AbstractEndpointpublic int beforeShutdown()
OrderlyShutdownCapablebeforeShutdown in interface OrderlyShutdownCapablepublic int afterShutdown()
OrderlyShutdownCapableafterShutdown in interface OrderlyShutdownCapable