MaterializedSnapshot
data class MaterializedSnapshot<S : Any>(val contextName: String, val aggregateName: String, val tenantId: String, val ownerId: String = OwnerId.DEFAULT_OWNER_ID, val spaceId: SpaceId = SpaceIdCapable.DEFAULT_SPACE_ID, val aggregateId: String, val version: Int, val eventId: String, val firstOperator: String, val operator: String, val firstEventTime: Long, val eventTime: Long, val state: S, val snapshotTime: Long, val tags: AbacTags = EMPTY_ABAC_TAGS, val deleted: Boolean) : IMaterializedSnapshot<MaterializedSnapshot<S>, S> , NamedAggregate, TenantId, OwnerId, SpaceIdCapable, Version, EventIdCapable, FirstOperatorCapable, OperatorCapable, FirstEventTimeCapable, EventTimeCapable, SnapshotTimeCapable, AbacTaggable, DeletedCapable
Data class representing a complete materialized snapshot of an aggregate's state.
This class contains all the information about an aggregate's state at a specific point in time, including metadata about the aggregate, versioning information, event tracking, and the actual state data. It implements multiple interfaces to provide comprehensive access to all snapshot properties.
Type Parameters
S
The type of the state data.
Constructors
Link copied to clipboard
constructor(contextName: String, aggregateName: String, tenantId: String, ownerId: String = OwnerId.DEFAULT_OWNER_ID, spaceId: SpaceId = SpaceIdCapable.DEFAULT_SPACE_ID, aggregateId: String, version: Int, eventId: String, firstOperator: String, operator: String, firstEventTime: Long, eventTime: Long, state: S, snapshotTime: Long, tags: AbacTags = EMPTY_ABAC_TAGS, deleted: Boolean)
Properties
Link copied to clipboard
The unique identifier of this aggregate instance.
Link copied to clipboard
The name of the aggregate.
Link copied to clipboard
The name of the context this aggregate belongs to.
Link copied to clipboard
The timestamp of the first event for this aggregate.
Link copied to clipboard
The identifier of the first operator who performed an operation on this aggregate.
Link copied to clipboard
The timestamp when this snapshot was created.