public final class ProgressContributor extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
finish() |
finish the contributor, possibly also the whole task if this instance was
the last one to finish.
|
String |
getTrackingId() |
an id that allows identification of the progress contributor by the monitor.
|
void |
progress(int workunit) |
Notify the user about completed workunits.
|
void |
progress(String message) |
Notify the user about progress by showing message with details.
|
void |
progress(String message,
int unit) |
Notify the user about completed workunits.
|
void |
start(int workunits) |
start the progress indication for a task with known number of steps.
|
public String getTrackingId()
public void start(int workunits)
workunits
- a total number of workunits that this contributor will process.public void finish()
public void progress(int workunit)
workunit
- a cumulative number of workunits completed so farpublic void progress(String message)
message
- detailed info about current progresspublic void progress(String message, int unit)
message
- detailed info about current progressunit
- a cumulative number of workunits completed so farBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.