MediumMaterializedSnapshot

data class MediumMaterializedSnapshot<S : Any>(val tenantId: String, val ownerId: String, val version: Int, val eventId: String, val firstOperator: String, val operator: String, val firstEventTime: Long, val eventTime: Long, val state: S) : IMaterializedSnapshot<S> , TenantId, OwnerId, Version, EventIdCapable, FirstOperatorCapable, OperatorCapable, FirstEventTimeCapable, EventTimeCapable

Represents a materialized snapshot for medium data, implementing multiple capabilities through inheritance. This class is designed to be generic, capable of holding state data of any type. Each snapshot corresponds to a specific version of the state within a tenant and owner context, and records information such as event IDs and operation times to support tracing and auditing.

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.

Constructors

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

Properties

Link copied to clipboard
open override val eventId: String
Link copied to clipboard
open override val eventTime: Long
Link copied to clipboard
open override val firstEventTime: Long
Link copied to clipboard
open override val firstOperator: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val operator: String
Link copied to clipboard
open override val ownerId: String
Link copied to clipboard
open override val state: S
Link copied to clipboard
open override val tenantId: String
Link copied to clipboard
open override val version: Int