Package-level declarations

Types

Link copied to clipboard
annotation class AggregateRoot(val commands: Array<KClass<*>> = [])

Aggregate Root tag.

Link copied to clipboard

当聚合根未创建时允许创建

Link copied to clipboard
annotation class Blocking
Link copied to clipboard
annotation class BoundedContext(val name: String, val alias: String = "", val scopes: Array<String> = [], val packageScopes: Array<KClass<*>> = [], val aggregates: Array<BoundedContext.Aggregate> = [])
Link copied to clipboard
annotation class CommandRoute(val path: String = DEFAULT_COMMAND_PATH, val enabled: Boolean = true, val method: CommandRoute.Method = Method.DEFAULT, val prefix: String = "", val appendIdPath: CommandRoute.AppendPath = AppendPath.DEFAULT, val appendTenantPath: CommandRoute.AppendPath = AppendPath.DEFAULT, val ignoreAggregateNamePrefix: Boolean = false, val summary: String = "", val description: String = "")
Link copied to clipboard

标记命令为创建聚合命令,这意味着该命令是聚合的第一个命令.

Link copied to clipboard
Link copied to clipboard
annotation class Event(val revision: String = DEFAULT_REVISION)

Event .

Link copied to clipboard
Link copied to clipboard
annotation class Name(val value: String)
Link copied to clipboard
@OnMessage(functionKind = FunctionKind.COMMAND, defaultFunctionName = "onCommand")
annotation class OnCommand(val returns: Array<KClass<*>> = [])

OnCommand .

Link copied to clipboard
@OnMessage(functionKind = FunctionKind.ERROR, defaultFunctionName = "onError")
annotation class OnError

OnCommandError .

Link copied to clipboard
@OnMessage(functionKind = FunctionKind.EVENT, defaultFunctionName = "onEvent")
annotation class OnEvent(val value: String)

On Event .

Link copied to clipboard
annotation class OnMessage(val functionKind: FunctionKind, val defaultFunctionName: String)

OnMessage .

Link copied to clipboard
@OnMessage(functionKind = FunctionKind.SOURCING, defaultFunctionName = "onSourcing")
annotation class OnSourcing

OnSourcing .

Link copied to clipboard
@OnMessage(functionKind = FunctionKind.STATE_EVENT, defaultFunctionName = "onStateEvent")
annotation class OnStateEvent(val value: String)

On State Event.

Link copied to clipboard
annotation class Order(val value: Int = ORDER_DEFAULT, val before: Array<KClass<*>> = [], val after: Array<KClass<*>> = [])
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Retry(val enabled: Boolean = true, val maxRetries: Int = DEFAULT_MAX_RETRIES, val minBackoff: Int = DEFAULT_MIN_BACKOFF, val executionTimeout: Int = DEFAULT_EXECUTION_TIMEOUT, val recoverable: Array<KClass<out Throwable>> = [], val unrecoverable: Array<KClass<out Throwable>> = [])
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
annotation class StaticTenantId(val tenantId: String = TenantId.DEFAULT_TENANT_ID)
Link copied to clipboard
Link copied to clipboard

Value Object Tag.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val ORDER_DEFAULT: Int = 0
Link copied to clipboard
const val ORDER_DEFAULT_STEP: Int = 100
Link copied to clipboard
const val ORDER_FIRST: Int
Link copied to clipboard
const val ORDER_LAST: Int