Package-level declarations

Types

Link copied to clipboard
abstract class AbstractCommandFunction<C : Any>(val commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : MessageFunction<C, ServerCommandExchange<*>, Mono<DomainEventStream>>

Abstract base class for command functions that handle command processing with after-command functions.

Link copied to clipboard

Processor for handling commands on a specific aggregate instance.

Link copied to clipboard

Factory interface for creating aggregate processors.

Link copied to clipboard

Represents a command aggregate that processes commands and manages state transitions.

Link copied to clipboard

Factory interface for creating command aggregate instances.

Link copied to clipboard
class CommandExpectVersionConflictException(val command: CommandMessage<*>, val expectVersion: Int, val actualVersion: Int, cause: Throwable? = null) : WowException
Link copied to clipboard
class CommandFunction<C : Any>(val delegate: MessageFunction<C, ServerCommandExchange<*>, Mono<*>>, commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : AbstractCommandFunction<C> , Decorator<MessageFunction<C, ServerCommandExchange<*>, Mono<*>>>

A concrete implementation of command function that wraps a delegate message function.

Link copied to clipboard

Represents the state of command processing in a command aggregate.

Link copied to clipboard
class DefaultDeleteAggregateFunction<C : Any>(commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : AbstractCommandFunction<C>

Default implementation of delete aggregate command function.

Link copied to clipboard
class DefaultRecoverAggregateFunction<C : Any>(commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : AbstractCommandFunction<C>

Default implementation of recover aggregate command function.

Link copied to clipboard
class IllegalAccessDeletedAggregateException(val aggregateId: AggregateId, errorMsg: String = "Illegal access to a deleted aggregate[") : AggregateIdCapable, WowException
Link copied to clipboard
class IllegalAccessOwnerAggregateException(val aggregateId: AggregateId, errorMsg: String = "Illegal access to a owner aggregate[") : WowException, AggregateIdCapable

Exception thrown when attempting to access an aggregate owned by another tenant or user.

Link copied to clipboard
class RetryableAggregateProcessor<C : Any, S : Any>(val aggregateId: AggregateId, aggregateMetadata: AggregateMetadata<C, S>, aggregateFactory: StateAggregateFactory, stateAggregateRepository: StateAggregateRepository, commandAggregateFactory: CommandAggregateFactory) : AggregateProcessor<C> , NamedTypedAggregate<C>
Link copied to clipboard
class RetryableAggregateProcessorFactory(stateAggregateFactory: StateAggregateFactory, stateAggregateRepository: StateAggregateRepository, commandAggregateFactory: CommandAggregateFactory) : AggregateProcessorFactory

Factory that creates retryable aggregate processors.

Link copied to clipboard
class SimpleCommandAggregate<C : Any, S : Any>(val state: StateAggregate<S>, val commandRoot: C, eventStore: EventStore, metadata: CommandAggregateMetadata<C>) : CommandAggregate<C, S> , NamedTypedAggregate<C>

Simple implementation of CommandAggregate that handles command processing with state management.

Link copied to clipboard

Factory for creating SimpleCommandAggregate instances.

Properties

Link copied to clipboard

Functions

Link copied to clipboard