edu.rice.cs.plt.concurrent
Class PollingTaskController.PollingRunningState

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.TaskController.RunningState
              extended by edu.rice.cs.plt.concurrent.PollingTaskController.PollingRunningState
Enclosing class:
PollingTaskController<R>

protected class PollingTaskController.PollingRunningState
extends TaskController.RunningState

RunningState variant based on a PollingRunner. Extends RunningState to allow it to be recognized as that type.


Constructor Summary
protected PollingTaskController.PollingRunningState()
           
 
Method Summary
 boolean cancel(boolean stopRunning)
           
 R get()
           
 R get(long timeout, TimeUnit u)
           
 void start()
           
 TaskController.Status status()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollingTaskController.PollingRunningState

protected PollingTaskController.PollingRunningState()
Method Detail

status

public TaskController.Status status()
Overrides:
status in class TaskController.RunningState

start

public void start()
Overrides:
start in class TaskController.RunningState

get

public R get()
      throws InterruptedException,
             ExecutionException
Overrides:
get in class TaskController.ComputingState
Throws:
InterruptedException
ExecutionException

get

public R get(long timeout,
             TimeUnit u)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Overrides:
get in class TaskController.ComputingState
Throws:
InterruptedException
ExecutionException
TimeoutException

cancel

public boolean cancel(boolean stopRunning)
Overrides:
cancel in class TaskController.RunningState