Class RabbitMqDeadLetterOptions
Configuration options for RabbitMQ dead letter queue management.
public sealed class RabbitMqDeadLetterOptions
- Inheritance
-
RabbitMqDeadLetterOptions
- Inherited Members
- Extension Methods
Remarks
RabbitMQ uses dead letter exchanges (DLX) with x-dead-letter-exchange and
x-dead-letter-routing-key queue arguments to route failed messages.
This class composes with the existing RabbitMQDeadLetterOptions from transport configuration.
Properties
Exchange
Gets or sets the dead letter exchange name.
public string Exchange { get; set; }
Property Value
- string
The DLX exchange name. Defaults to
dead-letters.
IncludeStackTrace
Gets or sets a value indicating whether to include exception stack traces in DLQ message headers.
public bool IncludeStackTrace { get; set; }
Property Value
MaxBatchSize
Gets or sets the maximum number of messages to retrieve in a single batch.
public int MaxBatchSize { get; set; }
Property Value
- int
The batch size. Defaults to 100.
QueueName
Gets or sets the dead letter queue name.
public string QueueName { get; set; }
Property Value
- string
The DLQ queue name. Defaults to
dead-letter-queue.
RoutingKey
Gets or sets the routing key for dead letter messages.
public string RoutingKey { get; set; }
Property Value
- string
The routing key. Defaults to
#.