Package de.intarsys.tools.concurrent
Class TaskStep<R>
- java.lang.Object
-
- de.intarsys.tools.concurrent.AbstractFutureTask<R>
-
- 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
Constructors Constructor Description TaskStep(TaskSequence sequence, java.lang.Runnable task, int percent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classAbstractFutureTask<R>
- Throws:
java.lang.Exception
-
getPercent
public int getPercent()
-
getSequence
public TaskSequence getSequence()
-
onSubTaskChanged
protected void onSubTaskChanged(java.lang.Object task)
-
-