de.intarsys.tools.concurrent
Class TaskStep<R>

java.lang.Object
  extended by de.intarsys.tools.concurrent.AbstractFutureTask<R>
      extended by de.intarsys.tools.concurrent.TaskStep<R>
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future

public class TaskStep<R>
extends AbstractFutureTask<R>

experimental


Field Summary
 
Fields inherited from class de.intarsys.tools.concurrent.AbstractFutureTask
Log
 
Constructor Summary
TaskStep(TaskSequence sequence, java.lang.Runnable task, int percent)
           
 
Method Summary
protected  R compute()
           
 int getPercent()
           
 TaskSequence getSequence()
           
protected  void onSubTaskChanged(java.lang.Object task)
           
 
Methods inherited from class de.intarsys.tools.concurrent.AbstractFutureTask
basicGetException, basicGetResult, cancel, computeAsync, get, get, getException, handleException, handleFinally, handleResult, isActive, isCancelled, isDone, isFailed, reset, run, runAsync, setException, setResult, taskCancelled, taskFailed, taskFinally, taskFinished, taskStarted, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskStep

public TaskStep(TaskSequence sequence,
                java.lang.Runnable task,
                int percent)
Method Detail

compute

protected R compute()
             throws java.lang.Exception
Specified by:
compute in class AbstractFutureTask<R>
Throws:
java.lang.Exception

getPercent

public int getPercent()

getSequence

public TaskSequence getSequence()

onSubTaskChanged

protected void onSubTaskChanged(java.lang.Object task)