@@ -49,6 +49,7 @@ public static class Headers
49
49
50
50
/// <summary>
51
51
/// x-max-length header
52
+ /// The max total size in bytes
52
53
/// </summary>
53
54
public const string XMaxLength = "x-max-length" ;
54
55
@@ -96,7 +97,7 @@ public static class Headers
96
97
// quorum
97
98
/// <summary>
98
99
/// x-queue-type header.
99
- /// Available types: "quorum" and "classic"(default)
100
+ /// Available types: "quorum" and "classic"(default) and "stream"
100
101
/// </summary>
101
102
public const string XQueueType = "x-queue-type" ;
102
103
@@ -121,5 +122,29 @@ public static class Headers
121
122
/// Allows to configure strategy when <see cref="XMaxLength"/> or <see cref="XMaxLengthInBytes"/> hits limits
122
123
/// </summary>
123
124
public const string XOverflow = "x-overflow" ;
125
+
126
+ /// <summary>
127
+ /// x-max-age header
128
+ /// Sets the maximum age of the stream. Default: not set.
129
+ /// valid units: Y, M, D, h, m, s
130
+ /// e.g. 7D for a week
131
+ /// </summary>
132
+ public const string XMaxAge = "x-max-age" ;
133
+
134
+ /// <summary>
135
+ /// x-stream-max-segment-size-bytes header
136
+ /// A stream is divided up into fixed size segment files on disk.
137
+ /// This setting controls the size of these. Default: (500000000 bytes).
138
+ /// </summary>
139
+ public const string XStreamMaxSegmentSizeInBytes = "x-stream-max-segment-size-bytes" ;
140
+
141
+ /// <summary>
142
+ /// x-stream-offset header.
143
+ /// As streams never delete any messages, any consumer can start reading/consuming from any point in the log.
144
+ /// this is controlled by the x-stream-offset consumer argument.
145
+ /// Available values: "first", "last", "next", Timestamp and Interval (valid units: Y, M, D, h, m, s)
146
+ /// <see href="https://www.rabbitmq.com/streams.html#consuming">See more</see>
147
+ /// </summary>
148
+ public const string XStreamOffset = "x-stream-offset" ;
124
149
}
125
150
}
0 commit comments