Annotation Interface Routing


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Routing
Specifies the routing information for the method call.
  • Element Details

    • value

      Class<? extends RoutingStrategy> value
      Specifies the RoutingStrategy used to distribute the remote invocations. This will be the type resolved against the IoC container from the ServiceLocator.
      Returns:
      the RoutingStrategy class
      Default:
      dev.getelements.elements.rt.routing.DefaultRoutingStrategy.class
    • name

      String name
      Optionally specifies the name of the RoutingStrategy to use. If non-empty, this will be used in conjunction with the ServiceLocator to fetch the RoutingStrategy from the container. Ths corresponds to the Named annotation.
      Returns:
      the name
      Default:
      ""