Table of Contents

Enum SettlementRetryability

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

Specifies whether retrying a failed settlement could succeed.

public enum SettlementRetryability
Extension Methods

Fields

Permanent = 2

The settlement can never succeed and repeating it will fail the same way.

The state the call depended on is gone — a closed connection whose unit of work no longer exists, or a claim that a newer owner has taken over. Retrying wastes attempts and hides the outcome; read RedeliveryExpectation to learn what happens to the message instead.

Retryable = 1

The failure was transient and the same settlement call may succeed if repeated.

A broker that was briefly unreachable, for example. The caller still owes the settlement, so abandoning it leaves the message outstanding.

Unspecified = 0

The transport could not determine whether a retry would succeed.

A real outcome, not a missing value. Treat it as Permanent for control-flow purposes — bounding the attempts is safe, whereas assuming a retry will eventually work is the case that loops forever.

Remarks

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