public class MethodParamRemoteRoutingHandler extends Object implements RemoteRoutingHandler
Uses the setDefaultParamIndex(int)
as the default parameter index (starting from 0)
that will be used as the hash code. Also allows to configure per method param index by setting
setMethodParamIndex(java.util.Map)
(which has a method name as the key and the param
index as the value).
Constructor and Description |
---|
MethodParamRemoteRoutingHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
computeRouting(SpaceRemotingInvocation remotingEntry)
Returns the routing field value based on the remoting invocation.
|
void |
setDefaultParamIndex(int defaultParamIndex)
The default paramter index (starting from 0) that will be used as the hash code to compute
the remote routing index.
|
void |
setMethodParamIndex(Map<String,Integer> methodParamIndex)
Configures per method parameter index (starting from 0) that wil be used as the hash code to
compute the routing index.
|
public void setDefaultParamIndex(int defaultParamIndex)
public void setMethodParamIndex(Map<String,Integer> methodParamIndex)
public Object computeRouting(SpaceRemotingInvocation remotingEntry)
RemoteRoutingHandler
null
is
returned, will use internal calcualtion of the routing index.computeRouting
in interface RemoteRoutingHandler
Copyright © GigaSpaces.