Table of Contents

Enum TransportRedeliveryExpectation

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Transport.Abstractions.dll

Specifies whether a message is expected to be redelivered after a failed settlement.

public enum TransportRedeliveryExpectation
Extension Methods

Fields

Expected = 1

The broker still owns the message and is expected to deliver it again to the consumer group.

The handler's work may therefore run a second time, so it must be idempotent. This is the usual outcome: an acknowledgement that did not reach the broker leaves the message outstanding, and a rejection that failed to suppress redelivery leaves it queued.

It promises redelivery to the consumer GROUP, not to this instance. On a partitioned or group-based transport the message may be delivered to a different member, in a different process. A caller must not read this as "I will see this message again" — that is a property of process identity that no correct consumer may depend on, and on several transports it is simply unknowable. What is promised is that the work is not lost.

NotExpected = 2

The message will not be delivered again despite the failure.

The settle call failed after the broker had already released the message, so retrying the settlement achieves nothing and the work will not arrive again. If the handler's effect must not be lost, the caller is responsible for recording it.

Unspecified = 0

The transport could not determine whether the message will be redelivered.

This is a real outcome and not a missing value: some brokers do not report enough about a failed settle to say. Treat it as Expected for safety — assume the work may arrive again.

Remarks

The numbering is not contiguous. Values are never reassigned, because a stored or logged number would silently come to mean something else.