Skip to content

Add additional headers #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions projects/client/RabbitMQ.Client/src/client/api/Headers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
// Copyright (c) 2007-2016 Pivotal Software, Inc. All rights reserved.
//---------------------------------------------------------------------------

using System.Collections.Generic;

namespace RabbitMQ.Client
{
/// <summary>
Expand Down Expand Up @@ -97,5 +95,40 @@ public static class Headers
/// x-priority header
/// </summary>
public const string XPriority = "x-priority";

/// <summary>
/// x-queue-mode header.
/// Available modes: "default" and "lazy"
/// </summary>
public const string XQueueMode = "x-queue-mode";

// quorum
/// <summary>
/// x-queue-type header.
/// Available types: "quorum" and "classic"(default)
/// </summary>
public const string XQueueType = "x-queue-type";

/// <summary>
/// x-quorum-initial-group-size header.
/// Use to control the number of quorum queue members
/// </summary>
public const string XQuorumInitialGroupSize = "x-quorum-initial-group-size";

// true/false
/// <summary>
/// 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
/// </summary>
public const string XSingleActiveConsumer = "x-single-active-consumer";

/// <summary>
/// x-overflow header.
/// Available strategies: "reject-publish" and "drop-head"(default).
/// Allows to configure strategy when <see cref="XMaxLength"/> or <see cref="XMaxLengthInBytes"/> hits limits
/// </summary>
public const string XOverflow = "x-overflow";
}
}