Annotation Interface Routing


@Target(PARAMETER) @Retention(RUNTIME) public @interface Routing
A method parameter annotation allowing to control the routing of a certain remote invocation using an annotation. If annotated, will use the parameter as the routing index (determines which partition it will "hit").

The annotation value allows to set an optional method name which will be invoked on the parameter using reflection in order to get the actual routing index.

Author:
kimchy
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional method name.
  • Element Details

    • value

      String value
      Optional method name. If set, will call this method name using reflection in order to get the actual routing index. If not set, will use the parameter value itself.
      Default:
      ""