edu.rice.cs.plt.concurrent
Class TaskController.WaitingState

java.lang.Object
  extended by edu.rice.cs.plt.concurrent.TaskController.State
      extended by 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.


Constructor Summary
protected TaskController.WaitingState()
           
 
Method Summary
 boolean cancel(boolean stopRunning)
           
 R get()
           
 R get(long timeout, java.util.concurrent.TimeUnit u)
           
 TaskController.Status status()
           
 
Methods inherited from class edu.rice.cs.plt.concurrent.TaskController.State
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskController.WaitingState

protected TaskController.WaitingState()
Method Detail

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