Skip to content

PersistenceExtension

Defined in: src/persistence/PersistenceExtension.ts:15

System-wide access point to the currently-configured journal and snapshot store. Plug-ins register a new factory through registerJournal / registerSnapshotStore; the active plug-in is chosen by the HOCON config path actor-ts.persistence.journal.plugin (defaults to the in-memory reference implementation).

new PersistenceExtension(system): PersistenceExtension

Defined in: src/persistence/PersistenceExtension.ts:22

ActorSystem

PersistenceExtension

get journal(): Journal

Defined in: src/persistence/PersistenceExtension.ts:40

Resolve the active journal, instantiating it on first use.

Journal


get snapshotStore(): SnapshotStore

Defined in: src/persistence/PersistenceExtension.ts:51

Resolve the active snapshot store, instantiating it on first use.

SnapshotStore

registerJournal(pluginId, factory): void

Defined in: src/persistence/PersistenceExtension.ts:28

string

(system) => Journal

void


registerSnapshotStore(pluginId, factory): void

Defined in: src/persistence/PersistenceExtension.ts:34

string

(system) => SnapshotStore

void


setJournal(j): void

Defined in: src/persistence/PersistenceExtension.ts:62

Replace the active journal in code — useful for tests that need a spy.

Journal

void


setSnapshotStore(s): void

Defined in: src/persistence/PersistenceExtension.ts:63

SnapshotStore

void