Class DatabaseEventFlusher
java.lang.Object
org.flowable.engine.impl.event.logger.AbstractEventFlusher
org.flowable.engine.impl.event.logger.DatabaseEventFlusher
- All Implemented Interfaces:
CommandContextCloseListener
,EventFlusher
- Author:
- Joram Barrez
-
Field Summary
Fields inherited from class org.flowable.engine.impl.event.logger.AbstractEventFlusher
eventHandlers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSessionsFlush
(CommandContext commandContext) Called when theSession
have been successfully flushed.void
closeFailure
(CommandContext commandContext) Called when theCommandContext
has not been successfully closed due to an exception that happened.void
closing
(CommandContext commandContext) Called when theCommandContext
is being closed, but no 'close logic' has been executed.boolean
Determines if there are multiple occurrences allowed of this close listenerorder()
Determines the order in which the close listeners will be executedMethods inherited from class org.flowable.engine.impl.event.logger.AbstractEventFlusher
addEventHandler, closed, getEventHandlers, setEventHandlers
-
Constructor Details
-
DatabaseEventFlusher
public DatabaseEventFlusher()
-
-
Method Details
-
closing
Description copied from interface:CommandContextCloseListener
Called when theCommandContext
is being closed, but no 'close logic' has been executed. At this point, theTransactionContext
(if applicable) has not yet been committed/rolledback and none of theSession
instances have been flushed. If an exception happens and it is not caught in this method: - TheSession
instances will *not* be flushed - TheTransactionContext
will be rolled back (if applicable) -
afterSessionsFlush
Description copied from interface:CommandContextCloseListener
Called when theSession
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: - TheSession
instances will *not* be flushed - TheTransactionContext
will be rolled back (if applicable) -
closeFailure
Description copied from interface:CommandContextCloseListener
Called when theCommandContext
has not been successfully closed due to an exception that happened. Note that throwing an exception here does *not* affect the transaction. TheCommandContext
will log the exception though. -
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
-