Package wowodc.background.tasks

Examples of wowodc.background.tasks.T01T02SimpleBackgroundTask


   * Demo 1
   * T01
   * @return the current page (null) after creating a task and starting it in another thread.
   */
  public WOActionResults dispatchBackgroundTask() {
    T01T02SimpleBackgroundTask task = new T01T02SimpleBackgroundTask();
    ERXExecutorService.executorService().execute(task);
    return null;
  }
View Full Code Here


   *
   * T01
   * @return long response page running the same task in a long response page allowing user to wait and know when it is complete.
   */
  public WOActionResults dispatchBackgroundTaskInLongRsponsePage() {
    Runnable task = new T01T02SimpleBackgroundTask();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
   
    return nextPage;
View Full Code Here

TOP

Related Classes of wowodc.background.tasks.T01T02SimpleBackgroundTask

Copyright © 2018 www.massapicom. 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.