load

abstract fun <S : Any> load(aggregateId: AggregateId, metadata: StateAggregateMetadata<S> = aggregateId.requiredAggregateType<Any>() .aggregateMetadata<Any, S>().state, tailVersion: Int = Int.MAX_VALUE): Mono<StateAggregate<S>>

Load State Aggregate.

stateAggregate.initialized=false means that no aggregate was found.

Parameters

aggregateId

the aggregate identifier.

metadata

the aggregate state metadata.

tailVersion

Int.MAX_VALUE means that the latest version is loaded.

Type Parameters

S

the type of the aggregate state.


abstract fun <S : Any> load(aggregateId: AggregateId, metadata: StateAggregateMetadata<S> = aggregateId.requiredAggregateType<Any>() .aggregateMetadata<Any, S>().state, tailEventTime: Long): Mono<StateAggregate<S>>