edu.rice.cs.plt.concurrent
Class IncrementalTaskController.PausingState

java.lang.Object
  extended by edu.rice.cs.plt.concurrent.TaskController.State
      extended by edu.rice.cs.plt.concurrent.TaskController.ComputingState
          extended by edu.rice.cs.plt.concurrent.IncrementalTaskController.PausingState
Direct Known Subclasses:
IncrementalTaskController.CanceledPausingState, IncrementalTaskController.FreshPausingState, IncrementalTaskController.StartedPausingState
Enclosing class:
IncrementalTaskController<I,R>

protected abstract class IncrementalTaskController.PausingState
extends TaskController.ComputingState

pause() has been invoked on a RunningState, but the task has not yet paused.


Constructor Summary
protected IncrementalTaskController.PausingState()
           
 
Method Summary
 boolean cancel(boolean stopRunning)
           
abstract  void paused()
          Operation to perform when pausing is complete
 TaskController.Status status()
           
 
Methods inherited from class edu.rice.cs.plt.concurrent.TaskController.ComputingState
get, get
 
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

IncrementalTaskController.PausingState

protected IncrementalTaskController.PausingState()
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

paused

public abstract void paused()
Operation to perform when pausing is complete