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

tailVersion

Int.MAX_VALUE means that the latest version is loaded.