public interface Monitor
Modifier and Type | Field and Description |
---|---|
static Monitor |
NULL_MONITOR
Empty implementation that does nothing.
|
Modifier and Type | Method and Description |
---|---|
void |
initReport(double initFraction)
Initialize the fraction of the work that was
completed when the process started.
|
boolean |
isCanceled()
If true, then any further progress should be cancelled.
|
void |
report(double fraction)
This method will be called with the current fraction
of work done.
|
static final Monitor NULL_MONITOR
void initReport(double initFraction)
initFraction
- Fraction of work done when
process started, from 0 to 1.void report(double fraction)
fraction
- Fraction of work done so far, from 0 to 1.
This value must equal or exceed all values previously
passed to this method or to initReport.boolean isCanceled()