Class DeferredMessage
- Namespace
- Integrations.Infrastructure.Messaging.Redelivery
- Assembly
- Integrations.Infrastructure.dll
A consumed message that could not be handled yet (see RetryLaterPolicy), parked in Postgres until it is due and then sent back to the queue it came from. Broker-agnostic delayed redelivery: RabbitMQ has no built-in delayed delivery, and the delayed-exchange plugin does not support current RabbitMQ releases.
public sealed class DeferredMessage
- Inheritance
-
DeferredMessage
- Inherited Members
Properties
Attempt
Redelivery number this row will make (1 for the first).
public int Attempt { get; init; }
Property Value
Body
The message as JSON.
public string Body { get; init; }
Property Value
CorrelationId
Correlation id, carried over to the redelivered message.
public Guid? CorrelationId { get; init; }
Property Value
- Guid?
CreatedAt
When it was deferred.
public DateTimeOffset CreatedAt { get; init; }
Property Value
Id
Row id.
public Guid Id { get; init; }
Property Value
MessageId
Broker message id of the attempt that was deferred.
public Guid? MessageId { get; init; }
Property Value
- Guid?
MessageType
Full CLR name of the message contract, e.g. Integrations.Contracts.Messages.CreditMemoIssued.
public string MessageType { get; init; }
Property Value
NextAttemptAt
When it is due.
public DateTimeOffset NextAttemptAt { get; init; }
Property Value
Publisher
Broker user that published the original message (see Messaging:Publishers), carried over to the redelivery.
public string? Publisher { get; init; }
Property Value
Queue
Queue the message is sent back to.
public string Queue { get; init; }
Property Value
Reason
Why it was deferred (error code and message).
public string Reason { get; init; }