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

java.lang.Object
  extended by edu.rice.cs.plt.concurrent.TaskController.State
      extended by edu.rice.cs.plt.concurrent.TaskController.ComputingState
Direct Known Subclasses:
IncrementalTaskController.PausingState, TaskController.CancelingState, TaskController.RunningState, TaskController.StartingState
Enclosing class:
TaskController<R>

protected abstract class TaskController.ComputingState
extends TaskController.State

Any state in which the task has already been asked to compute a result.


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

Constructor Detail

TaskController.ComputingState

protected TaskController.ComputingState()
Method Detail

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