Example #1
0
 @Override
 public Object invoke(Object target, Method method, Object[] params) {
   MethodInvocation invocation =
       new MethodInvocation(
           connector.getConnectorId(), rpcInterface.getName(), method.getName(), params);
   connector
       .getConnection()
       .addMethodInvocationToQueue(invocation, method.isDelayed(), method.isLastOnly());
   // No RPC iface should have a return value
   return null;
 }
Example #2
0
 @Override
 public Object invoke(Object target, Method method, Object[] params) {
   MethodInvocation invocation =
       new MethodInvocation(
           connector.getConnectorId(), rpcInterface.getName(), method.getName(), params);
   ServerRpcQueue serverRpcQueue = ServerRpcQueue.get(connector.getConnection());
   serverRpcQueue.add(invocation, method.isLastOnly());
   if (!method.isDelayed()) {
     serverRpcQueue.flush();
   }
   // No RPC iface should have a return value
   return null;
 }