PersistenceExtension
このコンテンツはまだ日本語訳がありません。
Defined in: src/persistence/PersistenceExtension.ts:16
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:23
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:41
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:58
Resolve the active snapshot store, instantiating it on first use.
Returns
Section titled “Returns”Methods
Section titled “Methods”configure()
Section titled “configure()”configure(
stores):void
Defined in: src/persistence/PersistenceExtension.ts:84
Set the active journal and/or snapshot store in one call — a thin
convenience over setJournal / setSnapshotStore for tests
and simple, single-backend apps that wire persistence directly in code
rather than through the config-selected registerXxxPlugins helpers.
Parameters
Section titled “Parameters”stores
Section titled “stores”journal?
Section titled “journal?”snapshotStore?
Section titled “snapshotStore?”Returns
Section titled “Returns”void
registerJournal()
Section titled “registerJournal()”registerJournal(
pluginId,factory):void
Defined in: src/persistence/PersistenceExtension.ts:29
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:35
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(
journal):void
Defined in: src/persistence/PersistenceExtension.ts:75
Replace the active journal in code — useful for tests that need a spy.
Parameters
Section titled “Parameters”journal
Section titled “journal”Returns
Section titled “Returns”void
setSnapshotStore()
Section titled “setSnapshotStore()”setSnapshotStore(
snapshotStore):void
Defined in: src/persistence/PersistenceExtension.ts:76
Parameters
Section titled “Parameters”snapshotStore
Section titled “snapshotStore”Returns
Section titled “Returns”void
