Package-level declarations
Types
Link copied to clipboard
interface RaptorAggregate<Id : RaptorAggregateId, in Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>> : RaptorEntity<Id>
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 RaptorAggregateCommandDefinition<in Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>>(val commandClass: KClass<Command>)
Link copied to clipboard
interface RaptorAggregateCommandExecution
Link copied to clipboard
interface RaptorAggregateCommandExecutor
Link copied to clipboard
class RaptorAggregateComponent<Aggregate : RaptorAggregate<Id, Command, Change>, Id : RaptorAggregateId, Command : RaptorAggregateCommand<Id>, Change : RaptorAggregateChange<Id>>
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
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
data class RaptorAggregateEventBatch<out AggregateId : RaptorAggregateId, out Change : RaptorAggregateChange<AggregateId>>(val aggregateId: AggregateId, val events: List<RaptorAggregateEvent<AggregateId, Change>>, val version: Int) : RaptorAggregateStreamMessage<AggregateId, Change>
Link copied to clipboard
Link copied to clipboard
fun interface RaptorAggregateFactory<out Aggregate : RaptorAggregate<Id, *, *>, Id : RaptorAggregateId>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RaptorAggregateProjectionDefinition<Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId, Event : RaptorAggregateChange<Id>>(val factory: () -> RaptorAggregateProjector.Incremental<Projection, Id, Event>? = null, val idClass: KClass<Id>, val projectionClass: KClass<Projection>)
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
data class RaptorAggregateProjectionEventBatch<out ProjectionId : RaptorAggregateProjectionId, out Projection : RaptorProjection<ProjectionId>, out Change : RaptorAggregateChange<ProjectionId>>(val events: List<RaptorAggregateProjectionEvent<ProjectionId, Projection, Change>>, val projectionId: ProjectionId, val version: Int) : RaptorAggregateProjectionStreamMessage<ProjectionId, Projection, Change>
Link copied to clipboard
Link copied to clipboard
interface RaptorAggregateProjectionLoader<out Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId>
Link copied to clipboard
interface RaptorAggregateProjectionLoaderManager
Link copied to clipboard
interface RaptorAggregateProjectionStream
Link copied to clipboard
interface RaptorAggregateProjectionStreamMessage<out ProjectionId : RaptorAggregateProjectionId, out Projection : RaptorProjection<ProjectionId>, out Change : RaptorAggregateChange<ProjectionId>>
Link copied to clipboard
interface RaptorAggregateProjector<out Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId, in AggregateEvent : RaptorAggregateChange<Id>>
Link copied to clipboard
Link copied to clipboard
interface RaptorAggregateStore
Link copied to clipboard
interface RaptorAggregateStream
Link copied to clipboard
interface RaptorAggregateStreamMessage<out AggregateId : RaptorAggregateId, out Change : RaptorAggregateChange<AggregateId>>
Link copied to clipboard
Link copied to clipboard
class RaptorDomainComponent
Link copied to clipboard
object RaptorDomainPlugin
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface RaptorEntityId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun <Id : RaptorAggregateProjectionId, Projection : RaptorProjection<Id>, Change : RaptorAggregateChange<Id>> RaptorAggregateProjectionEvent<*, *, *>.castOrNull(idClass: KClass<Id>, projectionClass: KClass<Projection>, changeClass: KClass<Change>): RaptorAggregateProjectionEvent<Id, Projection, Change>?
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
fun <ProjectionId : RaptorAggregateProjectionId, Projection : RaptorProjection<ProjectionId>, Change : RaptorAggregateChange<ProjectionId>> Flow<RaptorAggregateProjectionStreamMessage<ProjectionId, Projection, Change>>.events(): Flow<RaptorAggregateProjectionEvent<ProjectionId, Projection, Change>>
fun <AggregateId : RaptorAggregateId, Change : RaptorAggregateChange<AggregateId>> Flow<RaptorAggregateStreamMessage<AggregateId, Change>>.events(): Flow<RaptorAggregateEvent<AggregateId, Change>>
Link copied to clipboard
suspend fun <Id : RaptorAggregateId> <Error class: unknown class>.execute(id: Id, command: RaptorAggregateCommand<Id>)
fun <Id : RaptorAggregateId> RaptorAggregateCommandExecution.execute(id: Id, command: RaptorAggregateCommand<Id>)
suspend fun <Id : RaptorAggregateId> RaptorAggregateCommandExecutor.execute(id: Id, command: RaptorAggregateCommand<Id>)
suspend fun <Id : RaptorAggregateId> <Error class: unknown class>.execute(id: Id, version: Int?, command: RaptorAggregateCommand<Id>)
suspend fun <Id : RaptorAggregateId> RaptorAggregateCommandExecutor.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 <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> Flow<RaptorAggregateEvent<*, *>>.filterIsInstance(): Flow<RaptorAggregateEvent<Id, Change>>
inline fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> Flow<RaptorAggregateProjectionEvent<*, *, *>>.filterIsInstance(): Flow<RaptorAggregateProjectionEvent<Id, Projection, Change>>
fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> Flow<RaptorAggregateEvent<*, *>>.filterIsInstance(changeClass: KClass<Change>, idClass: KClass<Id>): Flow<RaptorAggregateEvent<Id, Change>>
fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> Flow<RaptorAggregateProjectionEvent<*, *, *>>.filterIsInstance(changeClass: KClass<Change>, idClass: KClass<Id>, projectionClass: KClass<Projection>): Flow<RaptorAggregateProjectionEvent<Id, Projection, Change>>
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(factory: RaptorAggregateFactory<Aggregate, Id>, 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): <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(factory: RaptorAggregateFactory<Aggregate, Id>, discriminator: String, noinline configure: RaptorAggregateComponent<Aggregate, Id, Command, Change>.() -> Unit = {})
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
inline fun <Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId, Event : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregateComponent<out RaptorAggregate<Id, *, Event>, Id, *, Event>>.project(noinline projectorFactory: () -> RaptorAggregateProjector.Incremental<Projection, Id, Event>)
fun <Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId, Event : RaptorAggregateChange<Id>> <Error class: unknown class><RaptorAggregateComponent<out RaptorAggregate<Id, *, Event>, Id, *, Event>>.project(projectionClass: KClass<Projection>, projectorFactory: () -> RaptorAggregateProjector.Incremental<Projection, Id, Event>)
Link copied to clipboard
inline fun <Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId> <Error class: unknown class>.projectionLoader(): RaptorAggregateProjectionLoader<Projection, Id>
inline fun <Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId> <Error class: unknown class>.projectionLoader(type: RaptorProjectionType<Projection, Id>): RaptorAggregateProjectionLoader<Projection, Id>
fun <Projection : RaptorAggregateProjection<Id>, Id : RaptorAggregateProjectionId> <Error class: unknown class>.projectionLoader(idClass: KClass<Id>): RaptorAggregateProjectionLoader<Projection, Id>
Link copied to clipboard
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
inline suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeMessagesIn(scope: CoroutineScope, noinline collector: suspend (message: RaptorAggregateProjectionStreamMessage<Id, Projection, Change>) -> Unit): Job
suspend fun <Id : RaptorAggregateProjectionId, Change : RaptorAggregateChange<Id>, Projection : RaptorProjection<Id>> RaptorAggregateProjectionStream.subscribeMessagesIn(scope: CoroutineScope, collector: suspend (message: RaptorAggregateProjectionStreamMessage<Id, Projection, Change>) -> Unit, changeClass: KClass<Change>, idClass: KClass<Id>, projectionClass: KClass<Projection>): Job
Link copied to clipboard
fun <Id : RaptorAggregateProjectionId, Projection : RaptorProjection<Id>, Change : RaptorAggregateChange<Id>> RaptorAggregateProjectionEvent<Id, Projection, *>.withChangeOrNull(changeClass: KClass<Change>): RaptorAggregateProjectionEvent<Id, Projection, Change>?
Properties
Link copied to clipboard
val <Error class: unknown class><RaptorDomainComponent>.aggregates: <Error class: unknown class><RaptorAggregatesComponent>