Class ClientProgressManager.RunningTask

java.lang.Object
com.inductiveautomation.ignition.client.util.gui.progress.ClientProgressManager.RunningTask
All Implemented Interfaces:
TaskHandle
Direct Known Subclasses:
ClientProgressManager.ClientRunningTask, ClientProgressManager.GatewayRunningTask
Enclosing class:
ClientProgressManager

protected class ClientProgressManager.RunningTask extends Object implements TaskHandle
  • Constructor Details

    • RunningTask

      public RunningTask(String uid)
    • RunningTask

      public RunningTask(TaskProgressState state)
    • RunningTask

      public RunningTask()
  • Method Details

    • getUid

      public String getUid()
      Specified by:
      getUid in interface TaskHandle
    • isDominant

      public boolean isDominant()
    • setDominant

      public void setDominant(boolean isDominant)
    • getCurrentState

      public TaskProgressState getCurrentState()
    • setCurrentState

      public void setCurrentState(TaskProgressState state)
    • notifyStateChanged

      protected void notifyStateChanged()
    • waitForResult

      public Object waitForResult(int timeout) throws Exception
      Waits for the operation to complete, returning its ret value, or passing along an error. The wait time is extended as long as there has been activity- thus an error will be thrown only after timeout has passed with no new activity.
      Specified by:
      waitForResult in interface TaskHandle
      Throws:
      Exception
    • finish

      public void finish(Object result)
    • cancel

      public void cancel()
      Specified by:
      cancel in interface TaskHandle