Class TaskCompletionMonitor

java.lang.Object
org.variantsync.diffdetective.analysis.monitoring.TaskCompletionMonitor

public class TaskCompletionMonitor extends Object
  • Field Details

    • progressReporter

      private final Consumer<TaskCompletionMonitor.TimeInfo> progressReporter
    • msToWait

      private final int msToWait
    • lastMeasurement

      private long lastMeasurement
    • startTime

      private long startTime
    • tasksDone

      private int tasksDone
  • Constructor Details

  • Method Details

    • start

      public void start()
    • addFinishedTasks

      public void addFinishedTasks(int numberOfFinishedTasks)
    • reportProgress

      public void reportProgress()
    • LogProgress

      public static Consumer<TaskCompletionMonitor.TimeInfo> LogProgress(String tasksName)