AggregateStackProvider
interface AggregateStackProvider<CHECKPOINT : Checkpoint> : AggregateServiceProvider, EventSubscriptionProvider<CHECKPOINT> (source)
Capability context for creating a complete aggregate stack (service, repository, subscription source, snapshot maintainer).
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
fun <STATE : AggregateState, COMMAND, EVENT : Any, EVENT_PERSISTED : Any, CHECKPOINT : Checkpoint> AggregateStackProvider<CHECKPOINT>.aggregateStack(definition: AggregateDefinition<STATE, COMMAND, EVENT, EVENT_PERSISTED>, block: AggregateStackDsl<STATE>.() -> Unit = {}): AggregateStack<STATE, COMMAND, EVENT, CHECKPOINT>
Builds a complete AggregateStack including service, repository, subscription source, and optional snapshot maintainer.
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 <EVENT : Any, EVENT_PERSISTED : Any> aggregateSubscriptionSource(definition: AggregateDefinition<*, *, EVENT, EVENT_PERSISTED>): AggregateEventSubscriptionSource<EVENT, CHECKPOINT>
Link copied to clipboard
abstract fun <EVENT : Any, EVENT_PERSISTED : Any> globalSubscriptionSource(globalTypes: EventTypeNames.Global<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>): GlobalEventSubscriptionSource<EVENT, CHECKPOINT>
Link copied to clipboard
abstract fun <STATE : AggregateState, STATE_PERSISTED : Any> snapshotStore(aggregateDefinition: AggregateDefinition<STATE, *, *, *>, stateSchema: AggregateStateSchema<STATE, STATE_PERSISTED>): SnapshotStore<STATE>