public class GenericTask extends Object implements IProgressObservableRunnable
Constructor and Description |
---|
GenericTask(int steps,
long waitingTime) |
GenericTask(int steps,
long waitingTime,
RuntimeException e) |
Modifier and Type | Method and Description |
---|---|
double |
getProgress()
The progress of the current task.
|
String |
getProgressMessage()
Returns a custom message about the progress.
|
void |
run() |
public GenericTask(int steps, long waitingTime)
public GenericTask(int steps, long waitingTime, RuntimeException e)
public double getProgress()
IProgressObservableRunnable
getProgress
in interface IProgressObservableRunnable
0
and 1
. Other values will be truncated to this interval.public String getProgressMessage()
IProgressObservableRunnable
getProgressMessage
in interface IProgressObservableRunnable
Copyright © 2015. All rights reserved.