Package com.complexible.common.base
Class ProgressMonitor.Builder
java.lang.Object
com.complexible.common.base.ProgressMonitor.Builder
- Enclosing class:
ProgressMonitor
Builder class for a customizable progress monitor
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a new monitor instance with specified options.maxProgress(long maxProgress) Sets the maximum progress value for the monitor and returns this builder instance.output(OutputStream output) Sets the output stream for the monitor and returns this builder instance.reportingDelegate(Optional<ProgressReporter> reporter) Set a reporter which will also see progress reportingreportIntervalPercent(int reportIntervalPercent) Sets the reporting interval (as the number of percent increment) for the monitor and returns this builder instance.
-
Method Details
-
build
Returns a new monitor instance with specified options. -
messageFormatter
-
maxProgress
Sets the maximum progress value for the monitor and returns this builder instance. -
reportIntervalPercent
Sets the reporting interval (as the number of percent increment) for the monitor and returns this builder instance. The default value is 1 meaning a message will be printed at every percent increment. -
output
Sets the output stream for the monitor and returns this builder instance. The default is stdout. -
reportingDelegate
Set a reporter which will also see progress reporting
-