State Aggregate .
聚合状态容器
订阅领域事件,修改聚合状态
状态聚合必须具有无参构造函数,作为序列化使用
ahoo wang
The unique identifier of this aggregate.
The expected version for the next event to be applied.
The current version of this aggregate's state.
当聚合未找到匹配的 onSourcing 方法时,不会认为产生的故障,忽略该事件,但更新聚合版本号为该领域事件的版本号.
onSourcing
Computes a grouping key for parallel processing based on the aggregate ID.