MediumMaterializedSnapshot

constructor(tenantId: String, ownerId: String, version: Int, eventId: String, firstOperator: String, operator: String, firstEventTime: Long, eventTime: Long, state: S)

Parameters

tenantId

Identifier for the tenant to which the snapshot belongs, used for multi-tenant differentiation.

ownerId

Identifier for the owner of the snapshot, usually representing the creator or responsible person.

version

The version number of the snapshot, used to track changes over time.

eventId

The ID of the event that triggered the creation of this snapshot.

firstOperator

The first operator who performed an operation on the state.

operator

The operator who last performed an operation on the state.

firstEventTime

The timestamp of the first event, marking the beginning of the state's history.

eventTime

The timestamp of the last event, marking the last update time of the state.

state

The actual state data, its type is generic, allowing for different types of state data.