enum NATS::JetStream::StreamConfig::PersistMode

Overview

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

Defined in:

jetstream/stream_config.cr

Enum Members

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 Method Summary

Instance Method Detail

def async? #

Returns true if this enum value equals Async


[View source]
def default? #

Returns true if this enum value equals Default


[View source]