edu.rice.cs.plt.concurrent
Class TaskController.WaitingState
java.lang.Object
edu.rice.cs.plt.concurrent.TaskController.State
edu.rice.cs.plt.concurrent.TaskController.WaitingState
- Direct Known Subclasses:
- IncrementalTaskController.PausedState, TaskController.FreshState
- Enclosing class:
- TaskController<R>
protected abstract class TaskController.WaitingState
- extends TaskController.State
Any state in which the task must be started before it can complete.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskController.WaitingState
protected TaskController.WaitingState()
status
public TaskController.Status status()
- Specified by:
status in class TaskController.State
cancel
public boolean cancel(boolean stopRunning)
- Specified by:
cancel in class TaskController.State
get
public R get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
- Specified by:
get in class TaskController.State
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public R get(long timeout,
java.util.concurrent.TimeUnit u)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- Specified by:
get in class TaskController.State
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException