Package com._1c.g5.v8.derived
Interface IDerivedDataOrchestrator
public interface IDerivedDataOrchestrator
Derived data orchestrator is the component responsible for tracking and coordinating derived data processing
operations. Since the derived data processing might conflict with other operations in the application, which the
derived data mechanism is not supposed to be aware of, the interface is implemented in the point where the derived
data mechanism is integrated.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanBegins processing of the specified bucket.voidCancels processing of the specified bucket.voidclose()Closes the orchestrator.voidendProcessing(DerivedDataSegmentBucket bucket, boolean interrupted) Ends processing of the specified bucket.voidinit(IDerivedDataOrchestratorListener listener) Sets orchestrator listener.booleanChecks if the resource synchronization process is active at the moment.
-
Method Details
-
beginProcessing
Begins processing of the specified bucket. If the processing is allowed the method returnstrue, otherwise returnsfalseand the request is placed in the queue. When it is possible to begin the processing the notification is sent via theorchestrator listener.- Parameters:
bucket- The bucket. May not benull.- Returns:
trueif the processing is allowed,falseotherwise.
-
endProcessing
Ends processing of the specified bucket.- Parameters:
bucket- The bucket. May not benull.interrupted- The boolean flag indicating whether the processing is interrupted or not.
-
cancelProcessing
Cancels processing of the specified bucket.- Parameters:
bucket- The bucket. May not benull.
-
isSynchronizationActive
boolean isSynchronizationActive()Checks if the resource synchronization process is active at the moment.- Returns:
trueif the resource synchronization process is active,falseotherwise.
-
init
Sets orchestrator listener.- Parameters:
listener- The listener to set. May not benull.
-
close
void close()Closes the orchestrator.
-