Table of Contents

Class DeadLetterQueueOptions

Namespace
DotCompute.Abstractions.Messaging
Assembly
DotCompute.Abstractions.dll

Configuration options for the dead letter queue.

public sealed class DeadLetterQueueOptions
Inheritance
DeadLetterQueueOptions
Inherited Members

Properties

CleanupInterval

Gets or sets the cleanup interval for expired entries.

public TimeSpan CleanupInterval { get; init; }

Property Value

TimeSpan

Remarks

How often to run the cleanup task for entries past retention. Default: 1 hour.

Default

Default dead letter queue options.

public static DeadLetterQueueOptions Default { get; }

Property Value

DeadLetterQueueOptions

EnableAutoCleanup

Gets or sets whether to enable automatic cleanup.

public bool EnableAutoCleanup { get; init; }

Property Value

bool

Remarks

Default: true.

MaxCapacity

Gets or sets the maximum capacity of the dead letter queue.

public int MaxCapacity { get; init; }

Property Value

int

Remarks

When the DLQ is full, oldest entries are automatically removed. Default: 10,000 entries.

RetentionPeriod

Gets or sets the retention period for dead letter entries.

public TimeSpan RetentionPeriod { get; init; }

Property Value

TimeSpan

Remarks

Entries older than this are automatically cleaned up. Default: 7 days.

StoreExceptionDetails

Gets or sets whether to store exception details.

public bool StoreExceptionDetails { get; init; }

Property Value

bool

Remarks

When false, exceptions are summarized to reduce memory usage. Default: true.