IMaterializedSnapshot

Interface for materialized snapshots that contain state data and metadata.

A materialized snapshot represents the current state of an aggregate at a specific point in time, including all necessary metadata for tracking and versioning. This interface provides a generic way to work with snapshots of different state types.

Parameters

SOURCE

The concrete type of the snapshot implementation.

S

The type of the state data contained in the snapshot.

Inheritors

Properties

Link copied to clipboard
abstract val state: S

The current state of the aggregate.

Functions

Link copied to clipboard
abstract fun withState(state: S): SOURCE

Creates a new snapshot with the specified state.