PersistNotificationInstance

Implements IPersistNotificationInstance

Default file-based implementation of IPersistNotificationInstance.

Features:

  • Each notification stored as separate JSON file keyed by id
  • Read iterates all keys via PersistBase.keys()
  • Crash-safe via atomic writes
constructor(backtest: boolean);
backtest: boolean
_storage: any

Underlying file-based storage for this mode

waitForInit(initial: boolean): Promise<void>;

Initializes the underlying PersistBase storage.

readNotificationData(): Promise<NotificationData>;

Reads all persisted notifications by iterating storage keys.

writeNotificationData(notifications: NotificationData): Promise<void>;

Writes each notification as a separate entity keyed by notification.id.