Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class RaptorAggregateChangeDefinition<out Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>>(val changeClass: KClass<Change>, val discriminator: String)
Link copied to clipboard
Link copied to clipboard
data class RaptorAggregateDefinition<Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>>(val aggregateClass: KClass<Aggregate>, val changeClass: KClass<Change>, val changeDefinitions: Set<RaptorAggregateChangeDefinition<Id, out Change>>, val commandClass: KClass<Command>, val commandDefinitions: Set<RaptorAggregateCommandDefinition<Id, out Command>>, val discriminator: String, val factory: RaptorAggregateFactory<Aggregate, Id>, val idClass: KClass<Id>, val projectionDefinition: RaptorAggregateProjectionDefinition<*, *, Change>? = null)
Link copied to clipboard
data class RaptorAggregateEvent<out AggregateId : RaptorAggregateId, out Change : RaptorAggregateChange<AggregateId>>(val aggregateId: AggregateId, val change: Change, val id: RaptorAggregateEventId, val timestamp: Timestamp, val version: Int, val lastVersionInBatch: Int = version) : RaptorEntity<RaptorAggregateEventId>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RaptorAggregateProjectionEvent<out ProjectionId : RaptorAggregateProjectionId, out Projection : RaptorProjection<ProjectionId>, out Change : RaptorAggregateChange<ProjectionId>>(val change: Change, val id: RaptorAggregateEventId, val previousProjection: Projection? = null, val projection: Projection?, val timestamp: Timestamp, val version: Int, val lastVersionInBatch: Int = version) : RaptorEntity<RaptorAggregateEventId>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class RaptorAggregateVersionConflict(message: String, cause: Throwable? = null) : Exception
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RaptorDomainPluginConfiguration(val aggregateDefinitions: RaptorAggregateDefinitions)
Link copied to clipboard
interface RaptorEntity<out Id : RaptorEntityId>
Link copied to clipboard
interface RaptorEntityId
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <Event : RaptorAggregateChange<*>> <Error class: unknown class><RaptorAggregateComponent<*, *, *, in Event>>.change(discriminator: String)
fun <Event : RaptorAggregateChange<*>> <Error class: unknown class><RaptorAggregateComponent<*, *, *, in Event>>.change(discriminator: String, eventClass: KClass<Event>)
Link copied to clipboard
inline fun <Command : RaptorAggregateCommand<*>> <Error class: unknown class><RaptorAggregateComponent<*, *, in Command, *>>.command()
Link copied to clipboard
suspend fun <Id : RaptorAggregateId> <Error class: unknown class>.execute(id: Id, command: RaptorAggregateCommand<Id>)
suspend fun <Id : RaptorAggregateId> <Error class: unknown class>.execute(id: Id, version: Int?, command: RaptorAggregateCommand<Id>)
Link copied to clipboard
inline suspend fun <Result> <Error class: unknown class>.execution(retryOnVersionConflict: Boolean = false, action: RaptorAggregateCommandExecution.() -> Result): Result
inline suspend fun <Result> RaptorAggregateCommandExecutor.execution(retryOnVersionConflict: Boolean = false, action: RaptorAggregateCommandExecution.() -> Result): Result
Link copied to clipboard
inline fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(noinline factory: (id: Id) -> Aggregate, discriminator: String): <Error class: unknown class><RaptorAggregateComponent<Aggregate, Id, Command, Change>>
inline fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(noinline factory: (id: Id) -> Aggregate, discriminator: String, noinline configure: RaptorAggregateComponent<Aggregate, Id, Command, Change>.() -> Unit = {})
fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(aggregateClass: KClass<Aggregate>, changeClass: KClass<Change>, commandClass: KClass<Command>, discriminator: String, factory: RaptorAggregateFactory<Aggregate, Id>, idClass: KClass<Id>): <Error class: unknown class><RaptorAggregateComponent<Aggregate, Id, Command, Change>>
fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(aggregateClass: KClass<Aggregate>, changeClass: KClass<Change>, commandClass: KClass<Command>, discriminator: String, factory: (id: Id) -> Aggregate, idClass: KClass<Id>): <Error class: unknown class><RaptorAggregateComponent<Aggregate, Id, Command, Change>>
fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(aggregateClass: KClass<Aggregate>, changeClass: KClass<Change>, commandClass: KClass<Command>, discriminator: String, factory: RaptorAggregateFactory<Aggregate, Id>, idClass: KClass<Id>, configure: RaptorAggregateComponent<Aggregate, Id, Command, Change>.() -> Unit = {})
fun <Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregatesComponent>.new(aggregateClass: KClass<Aggregate>, changeClass: KClass<Change>, commandClass: KClass<Command>, discriminator: String, factory: (id: Id) -> Aggregate, idClass: KClass<Id>, configure: RaptorAggregateComponent<Aggregate, Id, Command, Change>.() -> Unit = {})
Link copied to clipboard
fun <Error class: unknown class><RaptorDomainComponent>.onLoaded(action: suspend <Error class: unknown class>.() -> Unit)
Link copied to clipboard
fun <Error class: unknown class><RaptorAggregatesComponent>.store(store: RaptorAggregateStore)
Link copied to clipboard
inline suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateProjectionEventBatch<Id, Projection, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job
inline suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateProjectionEvent<Id, Projection, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job
inline suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateEventBatch<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job
inline suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateEvent<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job
suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateEventBatch<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, includeReplays: Boolean = false): Job
suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateEvent<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, includeReplays: Boolean = false): Job
suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateProjectionEventBatch<Id, Projection, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, projectionClass: KClass<Projection>, includeReplays: Boolean = false): Job
suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateProjectionEvent<Id, Projection, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, projectionClass: KClass<Projection>, includeReplays: Boolean = false): Job
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val <Error class: unknown class><RaptorDomainComponent>.aggregates: <Error class: unknown class><RaptorAggregatesComponent>
Link copied to clipboard
val <Error class: unknown class>.aggregateStore: RaptorAggregateStore
Link copied to clipboard
val <Error class: unknown class>.aggregateStream: RaptorAggregateStream
Link copied to clipboard
val <Error class: unknown class>.commandExecutor: RaptorAggregateCommandExecutor
Link copied to clipboard
Link copied to clipboard
val <Error class: unknown class>.domain: RaptorDomainPluginConfiguration
val <Error class: unknown class><in RaptorDomainPlugin>.domain: RaptorDomainComponent