public abstract class AbstractEventFlusher extends Object implements EventFlusher
| Modifier and Type | Field and Description |
|---|---|
protected List<EventLoggerEventHandler> |
eventHandlers |
| Constructor and Description |
|---|
AbstractEventFlusher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventHandler(EventLoggerEventHandler databaseEventLoggerEventHandler) |
void |
closed(CommandContext commandContext)
Called when the
CommandContext is successfully closed. |
List<EventLoggerEventHandler> |
getEventHandlers() |
void |
setEventHandlers(List<EventLoggerEventHandler> eventHandlers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterSessionsFlush, closeFailure, closingprotected List<EventLoggerEventHandler> eventHandlers
public void closed(CommandContext commandContext)
CommandContextCloseListenerCommandContext is successfully closed.
At this point, the TransactionContext (if applicable) has been successfully committed
and no rollback has happened. All Session instances have been closed.
Note that throwing an exception here does *not* affect the transaction.
The CommandContext will log the exception though.closed in interface CommandContextCloseListenerpublic List<EventLoggerEventHandler> getEventHandlers()
getEventHandlers in interface EventFlusherpublic void setEventHandlers(List<EventLoggerEventHandler> eventHandlers)
setEventHandlers in interface EventFlusherpublic void addEventHandler(EventLoggerEventHandler databaseEventLoggerEventHandler)
addEventHandler in interface EventFlusherCopyright © 2016 Alfresco. All rights reserved.