AggregateServiceProvider
Capability context for creating an aggregate service with optional snapshot support.
Inheritors
Functions
Link copied to clipboard
fun <STATE : AggregateState, COMMAND, EVENT : Any, EVENT_PERSISTED : Any> AggregateServiceProvider.aggregateService(definition: AggregateDefinition<STATE, COMMAND, EVENT, EVENT_PERSISTED>, block: AggregateServiceDsl<STATE>.() -> Unit = {}): AggregateService<STATE, COMMAND, EVENT>
Builds an AggregateService for command handling and state querying.
Link copied to clipboard
abstract fun <EVENT : Any, EVENT_PERSISTED : Any> aggregateStore(definition: AggregateDefinition<*, *, EVENT, EVENT_PERSISTED>): AggregateEventStore<EVENT>
Link copied to clipboard
abstract fun <STATE : AggregateState, STATE_PERSISTED : Any> snapshotStore(aggregateDefinition: AggregateDefinition<STATE, *, *, *>, stateSchema: AggregateStateSchema<STATE, STATE_PERSISTED>): SnapshotStore<STATE>