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

java.lang.Object
  extended by edu.rice.cs.plt.concurrent.TaskController.State
      extended by edu.rice.cs.plt.concurrent.TaskController.FinishedState
          extended by edu.rice.cs.plt.concurrent.TaskController.CleanlyFinishedState
Enclosing class:
TaskController<R>

protected class TaskController.CleanlyFinishedState
extends TaskController.FinishedState

Finished with a result. Only states with this type are "resolved" -- others should either require additional computation or throw an exception.


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

Constructor Detail

TaskController.CleanlyFinishedState

public TaskController.CleanlyFinishedState(R result)
Method Detail

get

public R get()
Specified by:
get in class TaskController.State

get

public R get(long timeout,
             java.util.concurrent.TimeUnit u)
Specified by:
get in class TaskController.State