public class AmqpOutboundEndpoint extends AbstractAmqpOutboundEndpoint implements RabbitTemplate.ConfirmCallback, RabbitTemplate.ReturnCallback
AbstractAmqpOutboundEndpoint.CorrelationDataWrapperAbstractReplyProducingMessageHandler.RequestHandlermessagingTemplateEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AmqpOutboundEndpoint(AmqpTemplate amqpTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirm(CorrelationData correlationData,
boolean ack,
String cause) |
protected void |
doStop() |
protected void |
endpointInit()
Subclasses can override to perform any additional initialization.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
void |
returnedMessage(Message message,
int replyCode,
String replyText,
String exchange,
String routingKey) |
void |
setExpectReply(boolean expectReply) |
void |
setExpressionConfirmCorrelation(Expression confirmCorrelationExpression)
|
void |
setExpressionExchangeName(Expression exchangeNameExpression)
Deprecated.
|
void |
setExpressionRoutingKey(Expression routingKeyExpression)
Deprecated.
|
buildReplyMessage, buildReturnedMessage, doInit, doStart, generateCorrelationData, generateExchangeName, generateRoutingKey, getConfirmAckChannel, getConfirmCorrelationExpression, getConfirmNackChannel, getCorrelationDataGenerator, getDefaultDeliveryMode, getExchangeName, getExchangeNameExpression, getExchangeNameGenerator, getHeaderMapper, getReturnChannel, getRoutingKey, getRoutingKeyExpression, getRoutingKeyGenerator, handleConfirm, isLazyConnect, isRunning, setConfirmAckChannel, setConfirmCorrelationExpression, setConfirmCorrelationExpressionString, setConfirmNackChannel, setConnectionFactory, setDefaultDeliveryMode, setExchangeName, setExchangeNameExpression, setExchangeNameExpressionString, setHeaderMapper, setLazyConnect, setReturnChannel, setRoutingKey, setRoutingKeyExpression, setRoutingKeyExpressionString, start, stopdoInvokeAdvisedRequestHandler, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplycreateOutputMessage, getOutputChannel, isAsync, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutputconfigureMetrics, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic AmqpOutboundEndpoint(AmqpTemplate amqpTemplate)
@Deprecated public void setExpressionExchangeName(Expression exchangeNameExpression)
AbstractAmqpOutboundEndpoint.setExchangeNameExpression(org.springframework.expression.Expression).exchangeNameExpression - the expression to set.@Deprecated public void setExpressionRoutingKey(Expression routingKeyExpression)
AbstractAmqpOutboundEndpoint.setRoutingKeyExpression(org.springframework.expression.Expression).routingKeyExpression - the expression to set.public void setExpectReply(boolean expectReply)
@Deprecated public void setExpressionConfirmCorrelation(Expression confirmCorrelationExpression)
AbstractAmqpOutboundEndpoint.setConfirmCorrelationExpression(org.springframework.expression.Expression).confirmCorrelationExpression - the expression to set.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerprotected void endpointInit()
AbstractAmqpOutboundEndpointendpointInit in class AbstractAmqpOutboundEndpointprotected void doStop()
doStop in class AbstractAmqpOutboundEndpointprotected Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandlerhandleRequestMessage in class AbstractReplyProducingMessageHandlerrequestMessage - The request message.null.public void confirm(CorrelationData correlationData, boolean ack, String cause)
confirm in interface RabbitTemplate.ConfirmCallbackpublic void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey)
returnedMessage in interface RabbitTemplate.ReturnCallback