Class DerivedDataTaskScheduler
java.lang.Object
com._1c.g5.v8.internal.derived.scheduler.DerivedDataTaskScheduler
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
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 Summary
ConstructorsConstructorDescriptionDerivedDataTaskScheduler
(IDerivedDataExecutorPool pool, ISystemIdleService systemIdleService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
addSupplier
(IDerivedDataTaskSupplier supplier) void
Deactivates the schedulervoid
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 cyclevoid
removeSupplier
(IDerivedDataTaskSupplier supplier) Removes the given supplier from the scheduler registryvoid
-
Constructor Details
-
DerivedDataTaskScheduler
public DerivedDataTaskScheduler(IDerivedDataExecutorPool pool, ISystemIdleService systemIdleService)
-
-
Method Details
-
activate
public void activate() -
addSupplier
-
deactivate
public void deactivate()Deactivates the scheduler -
removeSupplier
Removes the given supplier from the scheduler registry- Parameters:
supplier
- The supplier. May not benull
-
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
-