Examples of waitResult()


Examples of com.projity.job.Job.waitResult()

        Job job=new Job(SessionFactory.getInstance().getJobQueue(),"createProject","Creating project...",false);
        job.addRunnable(runnable);
      job.addSync();
      SessionFactory.getInstance().schedule(job);
      try {
        Project project=(Project)job.waitResult();
        System.out.println("Project returned end lock");
        return project;
      } catch (Exception e) {//Forward exception + Alert
        e.printStackTrace();
        return null;
View Full Code Here

Examples of com.projity.job.Job.waitResult()

      }
    },false);
    if (opt.isSync()) job.addSync();
    session.schedule(job);
    try {
      return (opt.isSync())?(Project)job.waitResult():null;
    } catch (Exception e) {//Forward exception + Alert
      return null;
    }
  }
View Full Code Here

Examples of com.projity.job.Job.waitResult()

    Session session=SessionFactory.getInstance().getSession(opt.isLocal());
    if (job!=null){
      if (opt.isSync()) job.addSync();
      session.schedule(job);
      try {
        if (opt.isSync()) job.waitResult();
      } catch (Exception e) {}
    }
  }

  public Job getSaveProjectJob(final Project project, final SaveOptions opt){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.