Class BatchComparisonTasksScheduler
java.lang.Object
com._1c.g5.v8.dt.internal.compare.run.BatchComparisonTasksScheduler
A scheduler of tasks for batches (re)comparison. Collects tasks and runs them one by one.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchComparisonTasksScheduler
(IBatchComparisonRunner comparisonRunner) Creates scheduler instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies the scheduler that an active comparison has been finished and the next task can be executed.void
Adds new task for (re)comparison to the queue.
-
Constructor Details
-
BatchComparisonTasksScheduler
Creates scheduler instance.- Parameters:
comparisonRunner
- the comparison runner, cannot benull
-
-
Method Details
-
scheduleTask
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 benull
-
onComparisonFinished
public void onComparisonFinished()Notifies the scheduler that an active comparison has been finished and the next task can be executed.
-