public @interface Rmi
RMI annotation. All rmic options related to remote objects
can be specified as an RMI annotation in the remote implementation
class. Elements for this class are:
callRouterClassname: The CallRouter class that is called before each invocation with the parameters
of the call and it returns the name server to which the call should be
routed. Parameter-based routing allows to provide a more fine-grained
load balancing behavior.
clusterable: Indicates if the remote object is clusterable.
defaultRMIMethodParams: Default RMI Method annotations. Can be over-ridden with a method
loadAlgorithm: Load Algorithm for clustered remote object.
Legal Values are RANDOM, ROUND_ROBIN, WEIGHT_BASED, SERVER_AFFINITY,
ROUND_ROBIN_AFFINITY, RANDOM_AFFINITY, WEIGHT_BASED_AFFINITY, and DEFAULT.
Default is Round_Robin.
remoteInterfaces: Annotate an interface to be treated as remote interface.
stickToFirstServer: Enables sticky load balancing. The server chosen for servicing
the first request will be used for all subsequent requests. Only used for a clusterable remote object.