Class BatchingProgressMonitor.Task

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    BatchingProgressMonitor

    private static class BatchingProgressMonitor.Task
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean display
      True when timer expires and output should occur on next update.
      private int lastPercent
      Percentage of totalWork that is done.
      private int lastWork
      Number of work units already completed.
      private boolean output
      True if the task has displayed anything.
      private java.lang.String taskName
      Title of the current task.
      private java.util.concurrent.Future<?> timerFuture
      Scheduled timer, supporting cancellation if task ends early.
      private int totalWork
      Number of work units, or ProgressMonitor.UNKNOWN.
    • Constructor Summary

      Constructors 
      Constructor Description
      Task​(java.lang.String taskName, int totalWork)  
    • Field Detail

      • taskName

        private final java.lang.String taskName
        Title of the current task.
      • display

        private volatile boolean display
        True when timer expires and output should occur on next update.
      • timerFuture

        private java.util.concurrent.Future<?> timerFuture
        Scheduled timer, supporting cancellation if task ends early.
      • output

        private boolean output
        True if the task has displayed anything.
      • lastWork

        private int lastWork
        Number of work units already completed.
      • lastPercent

        private int lastPercent
        Percentage of totalWork that is done.
    • Constructor Detail

      • Task

        Task​(java.lang.String taskName,
             int totalWork)
    • Method Detail

      • delay

        void delay​(long time,
                   java.util.concurrent.TimeUnit unit)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • restartTimer

        private void restartTimer()