Table of Contents

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

int

Body

The message as JSON.

public string Body { get; init; }

Property Value

string

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

DateTimeOffset

Id

Row id.

public Guid Id { get; init; }

Property Value

Guid

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

string

NextAttemptAt

When it is due.

public DateTimeOffset NextAttemptAt { get; init; }

Property Value

DateTimeOffset

Publisher

Broker user that published the original message (see Messaging:Publishers), carried over to the redelivery.

public string? Publisher { get; init; }

Property Value

string

Queue

Queue the message is sent back to.

public string Queue { get; init; }

Property Value

string

Reason

Why it was deferred (error code and message).

public string Reason { get; init; }

Property Value

string