public class AmqpOutboundEndpoint extends AbstractReplyProducingMessageHandler implements org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback, org.springframework.amqp.rabbit.core.RabbitTemplate.ReturnCallback
AbstractReplyProducingMessageHandler.RequestHandler
logger
Constructor and Description |
---|
AmqpOutboundEndpoint(org.springframework.amqp.core.AmqpTemplate amqpTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
confirm(org.springframework.amqp.rabbit.support.CorrelationData correlationData,
boolean ack) |
protected void |
doInit() |
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected java.lang.Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
void |
returnedMessage(org.springframework.amqp.core.Message message,
int replyCode,
java.lang.String replyText,
java.lang.String exchange,
java.lang.String routingKey) |
void |
setConfirmAckChannel(MessageChannel ackChannel) |
void |
setConfirmCorrelationExpression(java.lang.String confirmCorrelationExpression) |
void |
setConfirmNackChannel(MessageChannel nackChannel) |
void |
setExchangeName(java.lang.String exchangeName) |
void |
setExchangeNameExpression(java.lang.String exchangeNameExpression) |
void |
setExpectReply(boolean expectReply) |
void |
setHeaderMapper(AmqpHeaderMapper headerMapper) |
void |
setReturnChannel(MessageChannel returnChannel) |
void |
setRoutingKey(java.lang.String routingKey) |
void |
setRoutingKeyExpression(java.lang.String routingKeyExpression) |
doInvokeAdvisedRequestHandler, getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout, shouldCopyRequestHeaders
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public AmqpOutboundEndpoint(org.springframework.amqp.core.AmqpTemplate amqpTemplate)
protected void doInit()
doInit
in class AbstractReplyProducingMessageHandler
public void setHeaderMapper(AmqpHeaderMapper headerMapper)
public void setExchangeName(java.lang.String exchangeName)
public void setExchangeNameExpression(java.lang.String exchangeNameExpression)
public void setRoutingKey(java.lang.String routingKey)
public void setRoutingKeyExpression(java.lang.String routingKeyExpression)
public void setExpectReply(boolean expectReply)
public void setConfirmCorrelationExpression(java.lang.String confirmCorrelationExpression)
public void setConfirmAckChannel(MessageChannel ackChannel)
public void setConfirmNackChannel(MessageChannel nackChannel)
public void setReturnChannel(MessageChannel returnChannel)
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageHandler
protected java.lang.Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandler
handleRequestMessage
in class AbstractReplyProducingMessageHandler
public void confirm(org.springframework.amqp.rabbit.support.CorrelationData correlationData, boolean ack)
confirm
in interface org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback
public void returnedMessage(org.springframework.amqp.core.Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)
returnedMessage
in interface org.springframework.amqp.rabbit.core.RabbitTemplate.ReturnCallback