getVersion

open override fun getVersion(aggregateId: AggregateId): Mono<Int>

Gets the version of the latest snapshot for the specified aggregate ID and collects metrics on the operation. Metrics collected include timing and tags for aggregate identification.

Return

a Mono containing the snapshot version, or empty if no snapshot exists

Parameters

aggregateId

the aggregate ID to get the version for