|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.remoting.MethodParamRemoteRoutingHandler
public class MethodParamRemoteRoutingHandler
A default implementation of routing handler allowing to control the routing index of the remote invocation based on the remote method parameters.
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 Summary | |
---|---|
MethodParamRemoteRoutingHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodParamRemoteRoutingHandler()
Method Detail |
---|
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
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |