Class CompositeHistoryEventHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.handler.CompositeHistoryEventHandler
-
- All Implemented Interfaces:
HistoryEventHandler
- Direct Known Subclasses:
CompositeDbHistoryEventHandler
public class CompositeHistoryEventHandler extends Object implements HistoryEventHandler
AHistoryEventHandlerimplementation which delegates to a list ofHistoryEventHandler.- Author:
- Alexander Tyatenkov
-
-
Field Summary
Fields Modifier and Type Field Description protected List<HistoryEventHandler>historyEventHandlersThe list ofHistoryEventHandlerwhich consume the event.
-
Constructor Summary
Constructors Constructor Description CompositeHistoryEventHandler()Non-argument constructor for default initialization.CompositeHistoryEventHandler(List<HistoryEventHandler> historyEventHandlers)Constructor that takes a list ofHistoryEventHandlerthat consume the event.CompositeHistoryEventHandler(HistoryEventHandler... historyEventHandlers)Constructor that takes a varargs parameterHistoryEventHandlerthat consume the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(HistoryEventHandler historyEventHandler)Adds theHistoryEventHandlerto the list ofHistoryEventHandlerthat consume the event.voidhandleEvent(HistoryEvent historyEvent)Called by the process engine when an history event is fired.voidhandleEvents(List<HistoryEvent> historyEvents)Called by the process engine when an history event is fired.
-
-
-
Field Detail
-
historyEventHandlers
protected final List<HistoryEventHandler> historyEventHandlers
The list ofHistoryEventHandlerwhich consume the event.
-
-
Constructor Detail
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler()
Non-argument constructor for default initialization.
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler(HistoryEventHandler... historyEventHandlers)
Constructor that takes a varargs parameterHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandlers- the list ofHistoryEventHandlerthat consume the event.
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler(List<HistoryEventHandler> historyEventHandlers)
Constructor that takes a list ofHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandlers- the list ofHistoryEventHandlerthat consume the event.
-
-
Method Detail
-
add
public void add(HistoryEventHandler historyEventHandler)
Adds theHistoryEventHandlerto the list ofHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandler- theHistoryEventHandlerthat consume the event.
-
handleEvent
public void handleEvent(HistoryEvent historyEvent)
Description copied from interface:HistoryEventHandlerCalled by the process engine when an history event is fired.- Specified by:
handleEventin interfaceHistoryEventHandler- Parameters:
historyEvent- theHistoryEventthat is about to be fired.
-
handleEvents
public void handleEvents(List<HistoryEvent> historyEvents)
Description copied from interface:HistoryEventHandlerCalled by the process engine when an history event is fired.- Specified by:
handleEventsin interfaceHistoryEventHandler- Parameters:
historyEvents- theHistoryEventthat is about to be fired.
-
-