Class DatabaseEventFlusher

java.lang.Object
org.flowable.engine.impl.event.logger.AbstractEventFlusher
org.flowable.engine.impl.event.logger.DatabaseEventFlusher
All Implemented Interfaces:
CommandContextCloseListener, EventFlusher

public class DatabaseEventFlusher extends AbstractEventFlusher
Author:
Joram Barrez
  • Constructor Details

    • DatabaseEventFlusher

      public DatabaseEventFlusher()
  • Method Details

    • closing

      public void closing(CommandContext commandContext)
      Description copied from interface: CommandContextCloseListener
      Called when the CommandContext is being closed, but no 'close logic' has been executed. At this point, the TransactionContext (if applicable) has not yet been committed/rolledback and none of the Session instances have been flushed. If an exception happens and it is not caught in this method: - The Session instances will *not* be flushed - The TransactionContext will be rolled back (if applicable)
    • afterSessionsFlush

      public void afterSessionsFlush(CommandContext commandContext)
      Description copied from interface: CommandContextCloseListener
      Called when the Session have been successfully flushed. When an exception happened during the flushing of the sessions, this method will not be called. If an exception happens and it is not caught in this method: - The Session instances will *not* be flushed - The TransactionContext will be rolled back (if applicable)
    • closeFailure

      public void closeFailure(CommandContext commandContext)
      Description copied from interface: CommandContextCloseListener
      Called when the CommandContext has not been successfully closed due to an exception that happened. Note that throwing an exception here does *not* affect the transaction. The CommandContext will log the exception though.
    • order

      public Integer order()
      Description copied from interface: CommandContextCloseListener
      Determines the order in which the close listeners will be executed
      Returns:
      order lowest number will be executed first
    • multipleAllowed

      public boolean multipleAllowed()
      Description copied from interface: CommandContextCloseListener
      Determines if there are multiple occurrences allowed of this close listener
      Returns:
      multipleAllowed multiple occurrences allowed