EventStore

interface EventStore

EventStore .

Author

ahoo wang

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun append(eventStream: DomainEventStream): Mono<Void>

Append event stream to EventStore. Ensure transaction consistency.

Link copied to clipboard
abstract fun load(aggregateId: AggregateId, headVersion: Int = DEFAULT_HEAD_VERSION, tailVersion: Int = Int.MAX_VALUE): Flux<DomainEventStream>

根据聚合ID加载事件流.

Link copied to clipboard