edu.rice.cs.plt.concurrent
Class PollingTaskController.PollingRunningState
java.lang.Object
edu.rice.cs.plt.concurrent.TaskController.State
edu.rice.cs.plt.concurrent.TaskController.ComputingState
edu.rice.cs.plt.concurrent.TaskController.RunningState
edu.rice.cs.plt.concurrent.PollingTaskController.PollingRunningState
- Enclosing class:
- PollingTaskController<R>
protected class PollingTaskController.PollingRunningState
- extends TaskController.RunningState
RunningState variant based on a PollingRunner. Extends RunningState to allow it to be
recognized as that type.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollingTaskController.PollingRunningState
protected PollingTaskController.PollingRunningState()
status
public TaskController.Status status()
- Overrides:
status in class TaskController.RunningState
start
public void start()
- Overrides:
start in class TaskController.RunningState
get
public R get()
throws InterruptedException,
ExecutionException
- Overrides:
get in class TaskController.ComputingState
- Throws:
InterruptedException
ExecutionException
get
public R get(long timeout,
TimeUnit u)
throws InterruptedException,
ExecutionException,
TimeoutException
- Overrides:
get in class TaskController.ComputingState
- Throws:
InterruptedException
ExecutionException
TimeoutException
cancel
public boolean cancel(boolean stopRunning)
- Overrides:
cancel in class TaskController.RunningState