Skip to content

Commit b5e4dfb

Browse files
michaelklishinlukebakken
authored andcommitted
Merge pull request #667 from sergeyshaykhullin/add-header-constants
Add additional headers (cherry picked from commit 0c45012)
1 parent 30e0f6e commit b5e4dfb

File tree

1 file changed

+35
-2
lines changed
  • projects/client/RabbitMQ.Client/src/client/api

1 file changed

+35
-2
lines changed

projects/client/RabbitMQ.Client/src/client/api/Headers.cs

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
// Copyright (c) 2007-2020 VMware, Inc. All rights reserved.
3939
//---------------------------------------------------------------------------
4040

41-
using System.Collections.Generic;
42-
4341
namespace RabbitMQ.Client
4442
{
4543
/// <summary>
@@ -97,5 +95,40 @@ public static class Headers
9795
/// x-priority header
9896
/// </summary>
9997
public const string XPriority = "x-priority";
98+
99+
/// <summary>
100+
/// x-queue-mode header.
101+
/// Available modes: "default" and "lazy"
102+
/// </summary>
103+
public const string XQueueMode = "x-queue-mode";
104+
105+
// quorum
106+
/// <summary>
107+
/// x-queue-type header.
108+
/// Available types: "quorum" and "classic"(default)
109+
/// </summary>
110+
public const string XQueueType = "x-queue-type";
111+
112+
/// <summary>
113+
/// x-quorum-initial-group-size header.
114+
/// Use to control the number of quorum queue members
115+
/// </summary>
116+
public const string XQuorumInitialGroupSize = "x-quorum-initial-group-size";
117+
118+
// true/false
119+
/// <summary>
120+
/// x-single-active-consumer header.
121+
/// Available modes: true and false(default).
122+
/// Allows to have only one consumer at a time consuming from a queue
123+
/// and to fail over to another registered consumer in case the active one is cancelled or dies
124+
/// </summary>
125+
public const string XSingleActiveConsumer = "x-single-active-consumer";
126+
127+
/// <summary>
128+
/// x-overflow header.
129+
/// Available strategies: "reject-publish" and "drop-head"(default).
130+
/// Allows to configure strategy when <see cref="XMaxLength"/> or <see cref="XMaxLengthInBytes"/> hits limits
131+
/// </summary>
132+
public const string XOverflow = "x-overflow";
100133
}
101134
}

0 commit comments

Comments
 (0)