Snapshotter
Hierarchy
- Snapshotter
Implements
- Snapshotter
- Snapshotter
Index
Methods
Methods
getSnapshotOf
▸ getSnapshotOf(EventSourceableType
: EventSourceableType, eventSourceableId
: string | Guid): Promise‹EventSourceable | undefined›
Implementation of Snapshotter
Restores snapshotted event sourceable from storage.
async
Parameters:
Name | Type | Description |
---|---|---|
EventSourceableType | EventSourceableType | Event sourceable type(constructor). |
eventSourceableId | string | Guid | Identifier as string or Guid instance. |
Returns: Promise‹EventSourceable | undefined›
Instance as a snapshot implementing EventSourceable
interface, else undefined
.
initialize
▸ initialize(): void
Initializes Snapshotter.
Returns: void
makeSnapshotOf
▸ makeSnapshotOf(eventSourceable
: EventSourceable): Promise‹string | undefined›
Implementation of Snapshotter
Snapshots Event Sourceable.
async
Parameters:
Name | Type | Description |
---|---|---|
eventSourceable | EventSourceable | Instance implementing EventSourceable interface. |
Returns: Promise‹string | undefined›
Identifier of snapshot on storage.