enum

NATS::JetStream::StreamConfig::PersistMode

Inherits Enum < Comparable < Value < Object

The PersistMode tells the NATS server when to flush messages to disk.

Constants

Default = 0

Flush each message to disk before acknowledging it

Async = 1

Flush messages to disk asynchronously. The message may be acknowledged before it's flushed, so it can be lost if the server is killed.

Instance methods

async?

Returns true if this enum value equals Async

Source
default?

Returns true if this enum value equals Default

Source