Class Headers
Convenience class providing compile-time names for standard headers.
Inherited Members
Namespace: RabbitMQ.Client
Assembly: RabbitMQ.Client.dll
Syntax
public static class Headers
Remarks
Use the static members of this class as headers for the arguments for Queue and Exchange declaration or Consumer creation. The broker may be extended with additional headers that do not appear in this class.
Fields
| Edit this page View SourceAlternateExchange
alternate-exchange header
Declaration
public const string AlternateExchange = "alternate-exchange"
Field Value
Type | Description |
---|---|
string |
XDeadLetterExchange
x-dead-letter-exchange header
Declaration
public const string XDeadLetterExchange = "x-dead-letter-exchange"
Field Value
Type | Description |
---|---|
string |
XDeadLetterRoutingKey
x-dead-letter-routing-key header
Declaration
public const string XDeadLetterRoutingKey = "x-dead-letter-routing-key"
Field Value
Type | Description |
---|---|
string |
XExpires
x-expires header
Declaration
public const string XExpires = "x-expires"
Field Value
Type | Description |
---|---|
string |
XMaxLength
x-max-length header
Declaration
public const string XMaxLength = "x-max-length"
Field Value
Type | Description |
---|---|
string |
XMaxLengthInBytes
x-max-length-bytes header
Declaration
public const string XMaxLengthInBytes = "x-max-length-bytes"
Field Value
Type | Description |
---|---|
string |
XMaxPriority
x-max-priority header
Declaration
public const string XMaxPriority = "x-max-priority"
Field Value
Type | Description |
---|---|
string |
XMessageTTL
x-message-ttl header
Declaration
public const string XMessageTTL = "x-message-ttl"
Field Value
Type | Description |
---|---|
string |
XOverflow
x-overflow header. Available strategies: "reject-publish" and "drop-head"(default). Allows to configure strategy when XMaxLength or XMaxLengthInBytes hits limits
Declaration
public const string XOverflow = "x-overflow"
Field Value
Type | Description |
---|---|
string |
XPriority
x-priority header
Declaration
public const string XPriority = "x-priority"
Field Value
Type | Description |
---|---|
string |
XQueueMode
x-queue-mode header. Available modes: "default" and "lazy"
Declaration
public const string XQueueMode = "x-queue-mode"
Field Value
Type | Description |
---|---|
string |
XQueueType
x-queue-type header. Available types: "quorum" and "classic"(default)
Declaration
public const string XQueueType = "x-queue-type"
Field Value
Type | Description |
---|---|
string |
XQuorumInitialGroupSize
x-quorum-initial-group-size header. Use to control the number of quorum queue members
Declaration
public const string XQuorumInitialGroupSize = "x-quorum-initial-group-size"
Field Value
Type | Description |
---|---|
string |
XSingleActiveConsumer
x-single-active-consumer header. Available modes: true and false(default). Allows to have only one consumer at a time consuming from a queue and to fail over to another registered consumer in case the active one is cancelled or dies
Declaration
public const string XSingleActiveConsumer = "x-single-active-consumer"
Field Value
Type | Description |
---|---|
string |