Package-level declarations
Types
在命令函数完成执行后执行的函数。
AggregateId .
Aggregate Name .
Aggregate Root tag.
Marks a class as an aggregate route, which is used to define the routing behavior for aggregate operations. The annotation can specify the resource name and the ownership policy for the aggregate.
Expected Aggregate Version .
当聚合根未创建时允许创建
Marks a class or annotation as a command route, defining the action, method, and other properties for handling commands.
标记命令为创建聚合命令,这意味着该命令是聚合的第一个命令.
Entity tag.
OnCommandError .
OnMessage .
OnSourcing .
Marks a function as a handler for state events, indicating that the function should be invoked when a state event is emitted. This annotation is used in conjunction with the OnMessage annotation to specify the type of message and default function name.
用于标记函数,以启用重试机制。该注解允许配置重试策略,包括是否启用、最大重试次数、最小回退时间、执行超时时间以及指定可恢复和不可恢复的异常类型。
TenantId .
ValueObject annotation is used to mark a class or an annotation as a value object. A value object represents a domain concept that is defined by its data and does not have a distinct identity. This annotation can be applied to classes and annotation classes.
标记命令为虚空命令(Void Command)。