@Beta public interface SubProgressObserver extends ProgressObserver
This observer is intended to follow the executions of subtasks (using
ProgressObserver.subTask(java.lang.String, long)
). The only additional constraint is that the explicit
signalling of finisging the work (using done()
is required; usually by the
host task.
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in any of the later releases.
Modifier and Type | Method and Description |
---|---|
void |
done()
Notifies that the represented task is finished and no further work will be done.
|
subTask, switchToDeterminate, worked
isCancelled
void done()
Cancellation has no effect to the progress state, so this method must be invoked when finished, either due normal completion; cancellation or error
This method must be called exactly once.
IllegalStateException
- When no beginTask(...)
invoked or done()
is already
invoked.