Class ProgressMonitor.Builder

  • Enclosing class:
    ProgressMonitor

    public static class ProgressMonitor.Builder
    extends java.lang.Object
    Builder class for a customizable progress monitor
    • Method Detail

      • build

        public ProgressMonitor build()
        Returns a new monitor instance with specified options.
      • maxProgress

        public ProgressMonitor.Builder maxProgress​(long maxProgress)
        Sets the maximum progress value for the monitor and returns this builder instance.
      • reportIntervalPercent

        public ProgressMonitor.Builder reportIntervalPercent​(int 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

        public ProgressMonitor.Builder output​(java.io.OutputStream output)
        Sets the output stream for the monitor and returns this builder instance. The default is stdout.