Examples of ExportJob


Examples of com.baasbox.db.async.ExportJob

    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd-HHmmss");
    String fileName = String.format("%s-%s.zip", sdf.format(new Date()),FileSystemPathUtil.escapeName(appcode));
    //Async task
    Akka.system().scheduler().scheduleOnce(
        Duration.create(2, TimeUnit.SECONDS),
        new ExportJob(dir.getAbsolutePath()+fileSeparator+fileName,appcode),
        Akka.system().dispatcher()
        );
    return fileName;
  }
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.