You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`description` - (optional) Contains additional information about this consumer
173
+
*`discard` - (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (`new` or `old`)
174
+
*`discard_new_per_subject` - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
173
175
*`ack_policy` - (optional) The delivery acknowledgement policy to apply to the Consumer
174
176
*`ack_wait` - (optional) Number of seconds to wait for acknowledgement
175
177
*`deliver_all` - (optional) Starts at the first available message in the Stream
Copy file name to clipboardExpand all lines: docs/resources/jetstream_stream.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ Above the `ORDERS_ARCHIVE` stream is a mirror of `ORDERS`, valid options for spe
38
38
## Attribute Reference
39
39
40
40
*`description` - (optional) Contains additional information about this stream (string)
41
+
*`discard` - (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (`new` or `old`)
42
+
*`discard_new_per_subject` - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
41
43
*`ack` - (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
42
44
*`max_age` - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
43
45
*`max_bytes` - (optional) The maximum size of all messages that can be kept in the stream (number)
Description: "When a Stream reach it's limits either old messages are deleted or new ones are denied",
95
+
Optional: true,
96
+
Default: "old",
97
+
ValidateFunc: validateDiscardPolicy(),
98
+
},
99
+
"discard_new_per_subject": {
100
+
Type: schema.TypeBool,
101
+
Description: "When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject",
102
+
Optional: true,
103
+
Default: false,
104
+
},
92
105
"max_msgs": {
93
106
Type: schema.TypeInt,
94
107
Description: "The maximum amount of messages that can be kept in the stream",
0 commit comments