Annotation Interface RoutingKey


@Target({METHOD,FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface RoutingKey
Field or method level annotation that marks a field or method providing the routing key that a command targets.

If placed on a method, that method must contain no parameters. The return value will be used as the Routing Key.

If placed on a field, the field's value will be converted into a Routing Key instance identical to how a method's return value is converted.

Since:
4.0
Author:
Steven van Beelen