Class AbstractRabbitOutboundEndpoint
- Namespace
- Steeltoe.Integration.Rabbit.Outbound
- Assembly
- Steeltoe.Integration.RabbitMQ.dll
public abstract class AbstractRabbitOutboundEndpoint : AbstractReplyProducingMessageHandler, IMessageHandler, IServiceNameAware, IOrdered, IMessageProducer, IHeaderPropagation, ILifecycle
- Inheritance
-
AbstractRabbitOutboundEndpoint
- Implements
- Derived
- Inherited Members
Constructors
AbstractRabbitOutboundEndpoint(IApplicationContext, ILogger)
protected AbstractRabbitOutboundEndpoint(IApplicationContext context, ILogger logger)
Parameters
context
IApplicationContextlogger
ILogger
Properties
ConfirmAckChannel
public IMessageChannel ConfirmAckChannel { get; set; }
Property Value
ConfirmAckChannelName
public string ConfirmAckChannelName { get; set; }
Property Value
ConfirmCorrelationExpression
public IExpression ConfirmCorrelationExpression { get; set; }
Property Value
ConfirmNackChannel
public IMessageChannel ConfirmNackChannel { get; set; }
Property Value
ConfirmNackChannelName
public string ConfirmNackChannelName { get; set; }
Property Value
ConfirmTimeout
public TimeSpan? ConfirmTimeout { get; set; }
Property Value
ConnectionFactory
public IConnectionFactory ConnectionFactory { get; set; }
Property Value
CorrelationDataGenerator
public ExpressionEvaluatingMessageProcessor<object> CorrelationDataGenerator { get; set; }
Property Value
DefaultDeliveryMode
public MessageDeliveryMode DefaultDeliveryMode { get; set; }
Property Value
DelayExpression
public IExpression DelayExpression { get; set; }
Property Value
DelayGenerator
public ExpressionEvaluatingMessageProcessor<int> DelayGenerator { get; set; }
Property Value
ErrorMessageStrategy
public IErrorMessageStrategy ErrorMessageStrategy { get; set; }
Property Value
ExchangeName
public string ExchangeName { get; set; }
Property Value
ExchangeNameExpression
public IExpression ExchangeNameExpression { get; set; }
Property Value
ExchangeNameGenerator
public ExpressionEvaluatingMessageProcessor<string> ExchangeNameGenerator { get; set; }
Property Value
HeaderMapper
public IRabbitHeaderMapper HeaderMapper { get; set; }
Property Value
HeadersMappedLast
public bool HeadersMappedLast { get; set; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public bool IsRunning { get; }
Property Value
LazyConnect
public bool LazyConnect { get; set; }
Property Value
ReturnChannel
public IMessageChannel ReturnChannel { get; set; }
Property Value
RoutingKey
public string RoutingKey { get; set; }
Property Value
RoutingKeyExpression
public IExpression RoutingKeyExpression { get; set; }
Property Value
RoutingKeyGenerator
public ExpressionEvaluatingMessageProcessor<string> RoutingKeyGenerator { get; set; }
Property Value
Running
public bool Running { get; set; }
Property Value
Methods
AddDelayProperty(IMessage)
protected virtual void AddDelayProperty(IMessage message)
Parameters
message
IMessage
BuildReply(IMessageConverter, IMessage)
protected virtual IMessageBuilder BuildReply(IMessageConverter converter, IMessage amqpReplyMessage)
Parameters
converter
IMessageConverteramqpReplyMessage
IMessage
Returns
BuildReturnedMessage(IMessage, int, string, string, string, IMessageConverter)
protected virtual IMessage BuildReturnedMessage(IMessage message, int replyCode, string replyText, string exchange, string returnedRoutingKey, IMessageConverter converter)
Parameters
message
IMessagereplyCode
intreplyText
stringexchange
stringreturnedRoutingKey
stringconverter
IMessageConverter
Returns
DoStart()
protected virtual void DoStart()
DoStop()
protected virtual void DoStop()
EndpointInit()
protected virtual void EndpointInit()
GenerateCorrelationData(IMessage)
protected virtual CorrelationData GenerateCorrelationData(IMessage requestMessage)
Parameters
requestMessage
IMessage
Returns
GenerateExchangeName(IMessage)
protected virtual string GenerateExchangeName(IMessage requestMessage)
Parameters
requestMessage
IMessage
Returns
GenerateRoutingKey(IMessage)
protected virtual string GenerateRoutingKey(IMessage requestMessage)
Parameters
requestMessage
IMessage
Returns
GetConfirmAckChannel()
protected virtual IMessageChannel GetConfirmAckChannel()
Returns
GetConfirmNackChannel()
protected virtual IMessageChannel GetConfirmNackChannel()
Returns
GetRabbitTemplate()
protected abstract RabbitTemplate GetRabbitTemplate()
Returns
HandleConfirm(CorrelationData, bool, string)
protected void HandleConfirm(CorrelationData correlationData, bool ack, string cause)
Parameters
correlationData
CorrelationDataack
boolcause
string
Initialize()
public override void Initialize()
SetConfirmCorrelationExpressionString(string)
public void SetConfirmCorrelationExpressionString(string confirmCorrelationExpression)
Parameters
confirmCorrelationExpression
string
SetConfirmTimeout(int)
public void SetConfirmTimeout(int confirmTimeout)
Parameters
confirmTimeout
int
SetDelay(int)
public void SetDelay(int delay)
Parameters
delay
int
SetDelayExpressionString(string)
public void SetDelayExpressionString(string delayExpression)
Parameters
delayExpression
string
SetExchangeNameExpressionString(string)
public void SetExchangeNameExpressionString(string exchangeNameExpression)
Parameters
exchangeNameExpression
string
SetRoutingKeyExpressionString(string)
public void SetRoutingKeyExpressionString(string routingKeyExpression)
Parameters
routingKeyExpression
string
Start()
public void Start()
Stop()
public void Stop()