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 TypeMethodDescriptionboolean
Begins processing of the specified bucket.void
Cancels processing of the specified bucket.void
close()
Closes the orchestrator.void
endProcessing
(DerivedDataSegmentBucket bucket, boolean interrupted) Ends processing of the specified bucket.void
init
(IDerivedDataOrchestratorListener listener) Sets orchestrator listener.boolean
Checks 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 returnsfalse
and 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:
true
if the processing is allowed,false
otherwise.
-
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:
true
if the resource synchronization process is active,false
otherwise.
-
init
Sets orchestrator listener.- Parameters:
listener
- The listener to set. May not benull
.
-
close
void close()Closes the orchestrator.
-