NATS::JetStream::StreamConfig::DiscardPolicy
Inherits Enum / Comparable / Value / Object
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?
Constants
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