Class Progress

java.lang.Object
org.qubership.atp.dataset.migration.Progress

public class Progress extends Object
  • Constructor Details

    • Progress

      public Progress(Consumer<Integer> progressConsumer, long totalItems)
  • Method Details

    • withTimeThreshold

      public static Progress withTimeThreshold(Consumer<Integer> progressConsumer, long totalItems)
      Wraps progress consumer into another one with 2 secs threshold between toggles.
    • increment

      public void increment(double by)
      Increments progress by provided amount.