Interface HistoryEventHandler
-
- All Known Implementing Classes:
CompositeDbHistoryEventHandler
,CompositeHistoryEventHandler
,DbHistoryEventHandler
,PublishHistoryEventHandler
public interface HistoryEventHandler
The interface for implementing an history event handler.
The
HistoryEventHandler
is responsible for consuming the event. Many different implementations of this interface can be imagined. Some implementations might persist the event to a database, others might persist the event to a message queue and handle it asynchronously.The default implementation of this interface is
DbHistoryEventHandler
which persists events to a database.- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleEvent(HistoryEvent historyEvent)
Called by the process engine when an history event is fired.void
handleEvents(java.util.List<HistoryEvent> historyEvents)
Called by the process engine when an history event is fired.
-
-
-
Method Detail
-
handleEvent
void handleEvent(HistoryEvent historyEvent)
Called by the process engine when an history event is fired.- Parameters:
historyEvent
- theHistoryEvent
that is about to be fired.
-
handleEvents
void handleEvents(java.util.List<HistoryEvent> historyEvents)
Called by the process engine when an history event is fired.- Parameters:
historyEvents
- theHistoryEvent
that is about to be fired.
-
-