toggle menu
Wow
3.16.8
jvm
switch theme
search in API
wow-core
/
me.ahoo.wow.modeling.state
/
ReadOnlyStateAggregate
Read
Only
State
Aggregate
interface
ReadOnlyStateAggregate
<
S
:
Any
>
:
AggregateIdCapable
,
Version
,
TypedAggregate
<
S
>
Inheritors
Snapshot
SimpleSnapshot
StateEvent
StateAggregate
Members
Members & Extensions
Properties
aggregate
Id
Link copied to clipboard
abstract
override
val
aggregateId
:
AggregateId
aggregate
Type
Link copied to clipboard
abstract
override
val
aggregateType
:
Class
<
S
>
State Aggregation Type
deleted
Link copied to clipboard
abstract
val
deleted
:
Boolean
状态聚合是否已删除
event
Id
Link copied to clipboard
abstract
val
eventId
:
String
event
Time
Link copied to clipboard
abstract
val
eventTime
:
Long
expected
Next
Version
Link copied to clipboard
open
val
expectedNextVersion
:
Int
first
Event
Time
Link copied to clipboard
abstract
val
firstEventTime
:
Long
first
Operator
Link copied to clipboard
abstract
val
firstOperator
:
String
initialized
Link copied to clipboard
open
val
initialized
:
Boolean
is
Initial
Version
Link copied to clipboard
open
val
isInitialVersion
:
Boolean
operator
Link copied to clipboard
abstract
val
operator
:
String
state
Link copied to clipboard
abstract
val
state
:
S
version
Link copied to clipboard
abstract
override
val
version
:
Int
用于生成领域事件版本号.
Functions
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
>