Package com._1c.g5.v8.internal.derived
Class BmRawEventHandler
java.lang.Object
com._1c.g5.v8.internal.derived.BmRawEventHandler
- All Implemented Interfaces:
IBmSyncEventListener,BiConsumer<BmEvent,Boolean>
public class BmRawEventHandler
extends Object
implements IBmSyncEventListener, BiConsumer<BmEvent,Boolean>
Component that listen raw changes of the BM. Once it receives an event, it
checks, if the change requires re-computation of derived data. If it does,
updates the synchronous DD calculation context.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBmRawEventHandler(IBmModel bmModel, Collection<IContextCollector> syncContextCollectors, Collection<IRemovalContextCollector> syncRemovalContextCollectors, IDerivedDataContextManager derivedDataContextManager) Creates an instance of the DD BM raw event handler. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
BmRawEventHandler
public BmRawEventHandler(IBmModel bmModel, Collection<IContextCollector> syncContextCollectors, Collection<IRemovalContextCollector> syncRemovalContextCollectors, IDerivedDataContextManager derivedDataContextManager) Creates an instance of the DD BM raw event handler.- Parameters:
bmModel- The sourse BM model. Cannot benull.syncContextCollectors- The collection of the synchronous context collectors. Cannot benull.syncRemovalContextCollectors- the removal context collectors. Cannot benull.derivedDataContextManager- The DD context manager. Cannot benull.
-
-
Method Details
-
handleSyncEvent
Description copied from interface:IBmSyncEventListenerInvoked to notify about a BM event.- Specified by:
handleSyncEventin interfaceIBmSyncEventListener- Parameters:
event- the BM event. Nevernull.
-
start
public void start()Starts the work of the RAW event handler. Attaches to BM model an do additional configuration. -
stop
public void stop()Stops the handler, unregistering from the model -
accept
- Specified by:
acceptin interfaceBiConsumer<BmEvent,Boolean>
-