Class CompositeHistoryEventHandler
java.lang.Object
org.operaton.bpm.engine.impl.history.handler.CompositeHistoryEventHandler
- All Implemented Interfaces:
HistoryEventHandler
- Direct Known Subclasses:
CompositeDbHistoryEventHandler
A
HistoryEventHandler implementation which delegates to a list of
HistoryEventHandler.- Author:
- Alexander Tyatenkov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<HistoryEventHandler> The list ofHistoryEventHandlerwhich consume the event. -
Constructor Summary
ConstructorsConstructorDescriptionNon-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
Modifier and TypeMethodDescriptionvoidadd(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 Details
-
historyEventHandlers
The list ofHistoryEventHandlerwhich consume the event.
-
-
Constructor Details
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler()Non-argument constructor for default initialization. -
CompositeHistoryEventHandler
Constructor that takes a varargs parameterHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandlers- the list ofHistoryEventHandlerthat consume the event.
-
CompositeHistoryEventHandler
Constructor that takes a list ofHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandlers- the list ofHistoryEventHandlerthat consume the event.
-
-
Method Details
-
add
Adds theHistoryEventHandlerto the list ofHistoryEventHandlerthat consume the event.- Parameters:
historyEventHandler- theHistoryEventHandlerthat consume the event.
-
handleEvent
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
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.
-