enum NATS::JetStream::StreamConfig::DiscardPolicy
Overview
The DiscardPolicy
tells the NATS server which end of the stream to
truncate when the stream is full — should we start dropping old
messages or avoid adding new ones?
Defined in:
jetstream/stream_config.crEnum Members
-
Old =
0
-
Drop old messages when the stream has reached a count or volume limit
-
New =
1
-
Don't add new messages until old ones are discarded