Class DerivedDataTaskScheduler

java.lang.Object
com._1c.g5.v8.internal.derived.scheduler.DerivedDataTaskScheduler

public class DerivedDataTaskScheduler extends Object
Task scheduler is responsible for requesting tasks from the provided sources and dispatching them into the execution pool.
Each source represents the DD task pipeline of some EDT project being run at the moment.
The task scheduler performs a single task scheduling per scheduling step. Scheduling steps are being performed as the part of the scheduling cycle.
The scheduling cycle should be called in a separate thread by using jobs or other means of asycnrhonous execution. The schedulong cycle should be active while at least one EDT project exists and active
  • Constructor Details

  • Method Details

    • activate

      public void activate()
    • addSupplier

      public void addSupplier(IDerivedDataTaskSupplier supplier)
    • deactivate

      public void deactivate()
      Deactivates the scheduler
    • removeSupplier

      public void removeSupplier(IDerivedDataTaskSupplier supplier)
      Removes the given supplier from the scheduler registry
      Parameters:
      supplier - The supplier. May not be null
    • scheduleNonPriorityTaskCancelling

      public void scheduleNonPriorityTaskCancelling()
    • notifyScheduler

      public void notifyScheduler()
      Notifies scheduler that there is a client that needs DD data processing (e.g. processing of accumulated contexts, etc) This method is used to wake the scheduler earlier on its scheduling cycle