Class AbstractEventFlusher
- java.lang.Object
-
- org.activiti.engine.impl.event.logger.AbstractEventFlusher
-
- All Implemented Interfaces:
EventFlusher,CommandContextCloseListener
- Direct Known Subclasses:
DatabaseEventFlusher
public abstract class AbstractEventFlusher extends java.lang.Object implements EventFlusher
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<EventLoggerEventHandler>eventHandlers
-
Constructor Summary
Constructors Constructor Description AbstractEventFlusher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventHandler(EventLoggerEventHandler databaseEventLoggerEventHandler)voidclosed(CommandContext commandContext)Called when theCommandContextis successfully closed.java.util.List<EventLoggerEventHandler>getEventHandlers()voidsetEventHandlers(java.util.List<EventLoggerEventHandler> eventHandlers)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.impl.interceptor.CommandContextCloseListener
afterSessionsFlush, closeFailure, closing
-
-
-
-
Field Detail
-
eventHandlers
protected java.util.List<EventLoggerEventHandler> eventHandlers
-
-
Method Detail
-
closed
public void closed(CommandContext commandContext)
Description copied from interface:CommandContextCloseListenerCalled when theCommandContextis successfully closed. At this point, theTransactionContext(if applicable) has been successfully committed and no rollback has happened. AllSessioninstances have been closed. Note that throwing an exception here does *not* affect the transaction. TheCommandContextwill log the exception though.- Specified by:
closedin interfaceCommandContextCloseListener
-
getEventHandlers
public java.util.List<EventLoggerEventHandler> getEventHandlers()
- Specified by:
getEventHandlersin interfaceEventFlusher
-
setEventHandlers
public void setEventHandlers(java.util.List<EventLoggerEventHandler> eventHandlers)
- Specified by:
setEventHandlersin interfaceEventFlusher
-
addEventHandler
public void addEventHandler(EventLoggerEventHandler databaseEventLoggerEventHandler)
- Specified by:
addEventHandlerin interfaceEventFlusher
-
-