Class BatchComparisonTasksScheduler

java.lang.Object
com._1c.g5.v8.dt.internal.compare.run.BatchComparisonTasksScheduler

public class BatchComparisonTasksScheduler extends Object
A scheduler of tasks for batches (re)comparison. Collects tasks and runs them one by one.
  • Constructor Details

    • BatchComparisonTasksScheduler

      public BatchComparisonTasksScheduler(IBatchComparisonRunner comparisonRunner)
      Creates scheduler instance.
      Parameters:
      comparisonRunner - the comparison runner, cannot be null
  • Method Details

    • scheduleTask

      public void scheduleTask(IBatchComparisonTask task)
      Adds new task for (re)comparison to the queue. It will be executed as soon as all other tasks are done.
      Parameters:
      task - the comparison task to be run, cannot be null
    • onComparisonFinished

      public void onComparisonFinished()
      Notifies the scheduler that an active comparison has been finished and the next task can be executed.