public class AmqpInboundChannelAdapter extends MessageProducerSupport implements OrderlyShutdownCapable
logger
Constructor and Description |
---|
AmqpInboundChannelAdapter(org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer listenerContainer) |
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.
|
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.
|
void |
setHeaderMapper(AmqpHeaderMapper headerMapper) |
void |
setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter) |
sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
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 AmqpInboundChannelAdapter(org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer listenerContainer)
public void setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
public void setHeaderMapper(AmqpHeaderMapper headerMapper)
protected void onInit()
IntegrationObjectSupport
onInit
in class MessageProducerSupport
protected void doStart()
MessageProducerSupport
doStart
in class MessageProducerSupport
protected void doStop()
MessageProducerSupport
doStop
in class MessageProducerSupport
public int beforeShutdown()
Shuts down the listener container.
beforeShutdown
in interface OrderlyShutdownCapable
public int afterShutdown()
No-op
afterShutdown
in interface OrderlyShutdownCapable