Annotation Type CommandHandler
-
@Target(METHOD) @Retention(RUNTIME) public @interface CommandHandler
Marks a method as a command handler.This method will be invoked whenever the service call with name that matches this command handlers name is invoked.
The method may take the command object as a parameter, its type must match the gRPC service input type.
The return type of the method must match the gRPC services output type.
The method may also take a
CommandContext
, and/or aEntityId
annotatedString
parameter.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
name
The name of the command to handle.
-