Class DatabaseEventFlusher
- java.lang.Object
-
- org.activiti.engine.impl.event.logger.AbstractEventFlusher
-
- org.activiti.engine.impl.event.logger.DatabaseEventFlusher
-
- All Implemented Interfaces:
EventFlusher,CommandContextCloseListener
public class DatabaseEventFlusher extends AbstractEventFlusher
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.event.logger.AbstractEventFlusher
eventHandlers
-
-
Constructor Summary
Constructors Constructor Description DatabaseEventFlusher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSessionsFlush(CommandContext commandContext)Called when theSessionhave been successfully flushed.voidcloseFailure(CommandContext commandContext)Called when theCommandContexthas not been successully closed due to an exception that happened.voidclosing(CommandContext commandContext)Called when theCommandContextis being closed, but no 'close logic' has been executed.-
Methods inherited from class org.activiti.engine.impl.event.logger.AbstractEventFlusher
addEventHandler, closed, getEventHandlers, setEventHandlers
-
-
-
-
Method Detail
-
closing
public void closing(CommandContext commandContext)
Description copied from interface:CommandContextCloseListenerCalled when theCommandContextis being closed, but no 'close logic' has been executed. At this point, theTransactionContext(if applicable) has not yet been committed/rolledback and none of theSessioninstances have been flushed. If an exception happens and it is not caught in this method: - TheSessioninstances will *not* be flushed - TheTransactionContextwill be rolled back (if applicable)
-
afterSessionsFlush
public void afterSessionsFlush(CommandContext commandContext)
Description copied from interface:CommandContextCloseListenerCalled when theSessionhave 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: - TheSessioninstances will *not* be flushed - TheTransactionContextwill be rolled back (if applicable)
-
closeFailure
public void closeFailure(CommandContext commandContext)
Description copied from interface:CommandContextCloseListenerCalled when theCommandContexthas not been successully closed due to an exception that happened. Note that throwing an exception here does *not* affect the transaction. TheCommandContextwill log the exception though.
-
-