T
- public abstract class JobProgressAdapter<T> extends java.lang.Object implements JobProgressListener<T>
Constructor and Description |
---|
JobProgressAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
done(T result)
Called when the process is done.
|
void |
progress(double value)
Called when the process has made some progress.
|
void |
start()
Called when the process starts.
|
void |
step(java.lang.String message)
Can be called when a step of the process has been completed with a relevant message.
|
public void progress(double value)
JobProgressListener
progress
in interface JobProgressListener<T>
value
- a value from 0 to 1 representing the percentage of completion of the process.public void start()
JobProgressListener
start
in interface JobProgressListener<T>
public void step(java.lang.String message)
JobProgressListener
step
in interface JobProgressListener<T>
message
- the message stating of the paricular step completion.public abstract void done(T result)
JobProgressListener
done
in interface JobProgressListener<T>
result
- the object generated by the process.