GigaSpaces XAP 10.0.1 API

org.openspaces.remoting
Annotation Type Routing


@Target(value=PARAMETER)
@Retention(value=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
 String value
          Optional method name.
 

value

public abstract 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:
""

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.