Class InMemoryOutboxOptions
Configuration options for the in-memory outbox store.
public sealed class InMemoryOutboxOptions
- Inheritance
-
InMemoryOutboxOptions
- Inherited Members
Properties
DefaultRetentionPeriod
Gets or sets the default retention period for sent messages.
public TimeSpan DefaultRetentionPeriod { get; set; }
Property Value
- TimeSpan
The retention period. Defaults to 7 days.
FailureBackoffFloorSeconds
Gets or sets the failure-backoff floor F, in seconds: after MarkFailedAsync records a
sub-ceiling failure, the message is not re-claimable by the drain until F has elapsed from the
failure instant. This bounds the retry cadence of the plain (no fine-grained backoff) path so it
cannot hot-loop the drain, while the message remains eventually re-claimable (at-least-once).
[Range(1, 2147483647)]
public int FailureBackoffFloorSeconds { get; set; }
Property Value
- int
The failure-backoff floor in seconds. Defaults to 30 (uniform across the outbox family).
Remarks
F is a DEDICATED backoff floor, deliberately decoupled from LeaseTimeoutSeconds (the crash-recovery abandonment window) so the two can be tuned independently. It MUST exceed the outbox polling interval (default 5 s) or the failed message could be re-claimed on the very next poll — the default is chosen to satisfy that for the default polling interval.
LeaseTimeoutSeconds
Gets or sets the number of seconds a claim lease is honored before it is considered stale and eligible for reclamation by another concurrent poller within the same process.
[Range(1, 2147483647)]
public int LeaseTimeoutSeconds { get; set; }
Property Value
- int
The lease timeout in seconds. Defaults to 120.
MaxMessages
Gets or sets the maximum number of messages to retain.
[Range(0, 2147483647)]
public int MaxMessages { get; set; }
Property Value
- int
The maximum message count. Zero means unlimited. Defaults to 10000.