snapshotOf
fun <S : Any> snapshotOf(model: AggregateModel<S>, ref: AggregateRef, state: S, version: Int, scope: Scope, firstEventTime: Long, lastEventTime: Long, deleted: Boolean = false, operator: Operator? = null, firstOperator: Operator? = null, schedules: Map<String, ScheduleRule> = emptyMap()): SnapshotRecord
The snapshot of state, which folds ref's event streams up to version; scope is the aggregate's, the scope of the last of them, and firstEventTime and lastEventTime are the commit times of the first and the last. deleted and schedules are the aggregate's after them, evolved by the lifecycle and schedule events; a state the kernel loaded holds them (CachedState). operator and firstOperator are the operators of the last and the first of them.
fun snapshotOf(model: AggregateModel<*>, ref: AggregateRef, stateText: String, version: Int, scope: Scope, firstEventTime: Long, lastEventTime: Long, deleted: Boolean = false, operator: Operator? = null, firstOperator: Operator? = null, schedules: Map<String, ScheduleRule> = emptyMap(), access: Map<String, Any?>): SnapshotRecord
The snapshot of a state this codec already serialized as stateText: the shared state taken when the stream at version committed, so it is not serialized again, and access its declared access attributes in their stored form (accessOf, accessAfter). The rest is as for the snapshot of a state object.