OnMessage

annotation class OnMessage(val functionKind: FunctionKind, val defaultFunctionName: String)

Base annotation for message handler functions.

This annotation serves as a foundation for specific message handler annotations like @OnCommand, @OnEvent, and @OnSourcing. It provides common configuration for message processing functions.

Parameters

functionKind

The type of message this handler processes (COMMAND, EVENT, etc.).

defaultFunctionName

The default naming convention for handler functions.

See also

for command handlers

for event handlers

for state sourcing handlers

for available message types

Properties

Link copied to clipboard
Link copied to clipboard