SimpleSnapshot

data class SimpleSnapshot<S : Any>(val delegate: ReadOnlyStateAggregate<S>, val snapshotTime: Long = System.currentTimeMillis()) : Snapshot<S> , ReadOnlyStateAggregate<S> , Decorator<ReadOnlyStateAggregate<S>>

Constructors

Link copied to clipboard
constructor(delegate: ReadOnlyStateAggregate<S>, snapshotTime: Long = System.currentTimeMillis())

Properties

Link copied to clipboard
open override val aggregateId: AggregateId
Link copied to clipboard
open override val aggregateType: Class<S>

State Aggregation Type

Link copied to clipboard
open override val delegate: ReadOnlyStateAggregate<S>
Link copied to clipboard
open override val deleted: Boolean

状态聚合是否已删除

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 expectedNextVersion: Int
Link copied to clipboard
open override val firstEventTime: Long
Link copied to clipboard
open override val firstOperator: String
Link copied to clipboard
open override val initialized: Boolean
Link copied to clipboard
open override val isInitialVersion: Boolean
Link copied to clipboard
open override val operator: String
Link copied to clipboard
open override val snapshotTime: Long
Link copied to clipboard
open override val state: S
Link copied to clipboard
open override val version: Int

用于生成领域事件版本号.

Functions

Link copied to clipboard
Link copied to clipboard
fun AggregateIdCapable.toGroupKey(parallelism: Int = DEFAULT_PARALLELISM): Int