@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; }
@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; }