TenantSnapshotQueries

The snapshot queries of a tenant's reader (Queries): a state is read by its aggregate id too, in the tenant the queries read (the caller's, or the commit's).

Functions

Link copied to clipboard
abstract suspend fun state(id: String): Snapshot<S>?

The latest committed state of the aggregate id in the queries' tenant, as state of a ref reads it.

abstract suspend fun state(id: String, minVersion: Int): Snapshot<S>?

The committed state of the aggregate id at version minVersion or later, as state of a ref reads it.