enum

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

Instance methods

new?

Returns true if this enum value equals New

Source
old?

Returns true if this enum value equals Old

Source