Package er.extensions.concurrency

Examples of er.extensions.concurrency.IERXStoppable


    }
    return show;
  }

  public WOActionResults stopTask() {
    IERXStoppable task = loopStopTask();
    if (task != null) {
      task.stop();
    } //~ if (task != null)
    return null;
  }
View Full Code Here


 
  /**
   * @return the current task if it implements {@link IERXStoppable}, otherwise returns null.
   */
  private IERXStoppable loopStopTask() {
    IERXStoppable iERXStop = null;
    ERXTaskInfo info = loopTaskItem();
    Object task = info.task();

    if (task instanceof ERXFutureTask) {
      task = ((ERXFutureTask)task).task();
View Full Code Here

   * @return null
   */
  public WOActionResults stopTask() {
    Object task = future().task();
    if (task instanceof IERXStoppable) {
      IERXStoppable stoppable = (IERXStoppable)task;
      stoppable.stop();
      _wasStoppedByUser = true;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of er.extensions.concurrency.IERXStoppable

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.