public class ProgressTracker extends Object implements AutoCloseable
This object should not be used from multiple threads concurrently.
Constructor and Description |
---|
ProgressTracker(ProgressIndicator progger,
long count,
String txt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Signals that the iteration is finished.
|
void |
nextProgress()
Registers the next iteration.
|
public ProgressTracker(ProgressIndicator progger, long count, String txt)
progger
- progress indicatorcount
- number of invocations of progressNext expectedtxt
- stage title to pass to indicatorpublic void nextProgress() throws InterruptedException
InterruptedException
public void close()
close
in interface AutoCloseable
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.