Package com._1c.g5.v8.bm.integration
Interface IBmTaskCompletedProcessor
-
public interface IBmTaskCompletedProcessor
Interface for components that need notification upon successful task execution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
afterOperationIsFinished(Object bmOperationHandle, boolean writeOperation)
The method is called after the BM operation is finishedvoid
afterSyncEventListenerProcessed(BmEvent event, Runnable asyncEventScheduler)
The method invoked after a BM operation executed and all the registered synchronous event listeners are notified.default void
beforeOperationIsStarted(Object bmOperationHandle, boolean writeOperation)
The method is called right before the BM opertion processing logic is starteddefault Consumer<BmEvent>
getSyncEventConsumer()
Gets the event consumer that receives sync BM events in the straight order (for those transactions which change same objects)void
setModel(IBmModel model)
Sets model.
-
-
-
Method Detail
-
setModel
void setModel(IBmModel model)
Sets model.- Parameters:
model
- The model to set. May not benull
.
-
afterSyncEventListenerProcessed
void afterSyncEventListenerProcessed(BmEvent event, Runnable asyncEventScheduler)
The method invoked after a BM operation executed and all the registered synchronous event listeners are notified.- Parameters:
event
- The event representing modifications performed within the task. May not benull
.asyncEventScheduler
- Asyncrhronous event sending scheduler. May not benull
-
afterOperationIsFinished
default void afterOperationIsFinished(Object bmOperationHandle, boolean writeOperation)
The method is called after the BM operation is finished- Parameters:
bmOperationHandle
- The operation handle for the finished operation. May not benull
writeOperation
- The designator of a task that (potentially) changes the data
-
beforeOperationIsStarted
default void beforeOperationIsStarted(Object bmOperationHandle, boolean writeOperation)
The method is called right before the BM opertion processing logic is started- Parameters:
bmOperationHandle
- The operation handle for the operation that is about to be started. May not benull
writeOperation
- The designator of a task that (potentially) changes the data
-
getSyncEventConsumer
default Consumer<BmEvent> getSyncEventConsumer()
Gets the event consumer that receives sync BM events in the straight order (for those transactions which change same objects)- Returns:
- The consumer to supply events to. May be
null
if the current configuraiton of a reactor doesn't need the event consuming flow
-
-