toggle menu
Wow
3.16.8
jvm
switch theme
search in API
wow-core
/
me.ahoo.wow.eventsourcing.snapshot
/
SimpleSnapshot
Simple
Snapshot
data
class
SimpleSnapshot
<
S
:
Any
>
(
val
delegate
:
ReadOnlyStateAggregate
<
S
>
,
val
snapshotTime
:
Long
=
System.currentTimeMillis()
)
:
Snapshot
<
S
>
,
ReadOnlyStateAggregate
<
S
>
,
Decorator
<
ReadOnlyStateAggregate
<
S
>
>
Members
Members & Extensions
Constructors
Simple
Snapshot
Link copied to clipboard
constructor
(
delegate
:
ReadOnlyStateAggregate
<
S
>
,
snapshotTime
:
Long
=
System.currentTimeMillis()
)
Properties
aggregate
Id
Link copied to clipboard
open
override
val
aggregateId
:
AggregateId
aggregate
Type
Link copied to clipboard
open
override
val
aggregateType
:
Class
<
S
>
State Aggregation Type
delegate
Link copied to clipboard
open
override
val
delegate
:
ReadOnlyStateAggregate
<
S
>
deleted
Link copied to clipboard
open
override
val
deleted
:
Boolean
状态聚合是否已删除
event
Id
Link copied to clipboard
open
override
val
eventId
:
String
event
Time
Link copied to clipboard
open
override
val
eventTime
:
Long
expected
Next
Version
Link copied to clipboard
open
override
val
expectedNextVersion
:
Int
first
Event
Time
Link copied to clipboard
open
override
val
firstEventTime
:
Long
first
Operator
Link copied to clipboard
open
override
val
firstOperator
:
String
initialized
Link copied to clipboard
open
override
val
initialized
:
Boolean
is
Initial
Version
Link copied to clipboard
open
override
val
isInitialVersion
:
Boolean
operator
Link copied to clipboard
open
override
val
operator
:
String
snapshot
Time
Link copied to clipboard
open
override
val
snapshotTime
:
Long
state
Link copied to clipboard
open
override
val
state
:
S
version
Link copied to clipboard
open
override
val
version
:
Int
用于生成领域事件版本号.
Functions
materialize
Link copied to clipboard
fun
<
S
:
Any
>
Snapshot
<
S
>
.
materialize
(
)
:
MaterializedSnapshot
<
S
>
to
Group
Key
Link copied to clipboard
fun
AggregateIdCapable
.
toGroupKey
(
parallelism
:
Int
=
DEFAULT_PARALLELISM
)
:
Int
to
State
Aggregate
Link copied to clipboard
@
JvmStatic
fun
<
S
:
Any
>
ReadOnlyStateAggregate
<
S
>
.
toStateAggregate
(
)
:
StateAggregate
<
S
>