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).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PersistenceExtension(
system):PersistenceExtension
Defined in: src/persistence/PersistenceExtension.ts:22
Parameters
Section titled “Parameters”system
Section titled “system”Returns
Section titled “Returns”PersistenceExtension
Accessors
Section titled “Accessors”journal
Section titled “journal”Get Signature
Section titled “Get Signature”get journal():
Journal
Defined in: src/persistence/PersistenceExtension.ts:40
Resolve the active journal, instantiating it on first use.
Returns
Section titled “Returns”snapshotStore
Section titled “snapshotStore”Get Signature
Section titled “Get Signature”get snapshotStore():
SnapshotStore
Defined in: src/persistence/PersistenceExtension.ts:51
Resolve the active snapshot store, instantiating it on first use.
Returns
Section titled “Returns”Methods
Section titled “Methods”registerJournal()
Section titled “registerJournal()”registerJournal(
pluginId,factory):void
Defined in: src/persistence/PersistenceExtension.ts:28
Parameters
Section titled “Parameters”pluginId
Section titled “pluginId”string
factory
Section titled “factory”(system) => Journal
Returns
Section titled “Returns”void
registerSnapshotStore()
Section titled “registerSnapshotStore()”registerSnapshotStore(
pluginId,factory):void
Defined in: src/persistence/PersistenceExtension.ts:34
Parameters
Section titled “Parameters”pluginId
Section titled “pluginId”string
factory
Section titled “factory”(system) => SnapshotStore
Returns
Section titled “Returns”void
setJournal()
Section titled “setJournal()”setJournal(
j):void
Defined in: src/persistence/PersistenceExtension.ts:62
Replace the active journal in code — useful for tests that need a spy.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setSnapshotStore()
Section titled “setSnapshotStore()”setSnapshotStore(
s):void
Defined in: src/persistence/PersistenceExtension.ts:63
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void