Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SnapshotStore

Abstract interface for a store that holds aggregate snapshots

Hierarchy

Index

Methods

Abstract deleteSnapshots

  • deleteSnapshots(): Promise<void>

Abstract readSnapshot

Abstract setup

  • setup(): Promise<void>

Abstract teardown

  • teardown(): Promise<void>

Abstract writeSnapshot

  • writeSnapshot(type: string, key: string, payload: object): Promise<void>
  • Write an aggregate instance snapshot to the store

    Parameters

    • type: string

      e.g. 'Account'

    • key: string

      e.g. '1234'

    • payload: object
      • compatibilityChecksum: string
      • state: object
      • timestamp: Timestamp
      • version: number

    Returns Promise<void>

Generated using TypeDoc