Interface IBmTaskCompletedProcessor


  • public interface IBmTaskCompletedProcessor
    Interface for components that need notification upon successful task execution.
    • Method Detail

      • setModel

        void setModel​(IBmModel model)
        Sets model.
        Parameters:
        model - The model to set. May not be null.
      • 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 be null.
        asyncEventScheduler - Asyncrhronous event sending scheduler. May not be null
      • 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 be null
        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 be null
        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