Class CompositeHistoryEventHandler
java.lang.Object
org.camunda.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
Modifier and TypeFieldDescriptionprotected final List<HistoryEventHandler>
The list ofHistoryEventHandler
which consume the event. -
Constructor Summary
ConstructorDescriptionNon-argument constructor for default initialization.CompositeHistoryEventHandler
(List<HistoryEventHandler> historyEventHandlers) Constructor that takes a list ofHistoryEventHandler
that consume the event.CompositeHistoryEventHandler
(HistoryEventHandler... historyEventHandlers) Constructor that takes a varargs parameterHistoryEventHandler
that consume the event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(HistoryEventHandler historyEventHandler) Adds theHistoryEventHandler
to the list ofHistoryEventHandler
that consume the event.void
handleEvent
(HistoryEvent historyEvent) Called by the process engine when an history event is fired.void
handleEvents
(List<HistoryEvent> historyEvents) Called by the process engine when an history event is fired.
-
Field Details
-
historyEventHandlers
The list ofHistoryEventHandler
which consume the event.
-
-
Constructor Details
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler()Non-argument constructor for default initialization. -
CompositeHistoryEventHandler
Constructor that takes a varargs parameterHistoryEventHandler
that consume the event.- Parameters:
historyEventHandlers
- the list ofHistoryEventHandler
that consume the event.
-
CompositeHistoryEventHandler
Constructor that takes a list ofHistoryEventHandler
that consume the event.- Parameters:
historyEventHandlers
- the list ofHistoryEventHandler
that consume the event.
-
-
Method Details
-
add
Adds theHistoryEventHandler
to the list ofHistoryEventHandler
that consume the event.- Parameters:
historyEventHandler
- theHistoryEventHandler
that consume the event.
-
handleEvent
Description copied from interface:HistoryEventHandler
Called by the process engine when an history event is fired.- Specified by:
handleEvent
in interfaceHistoryEventHandler
- Parameters:
historyEvent
- theHistoryEvent
that is about to be fired.
-
handleEvents
Description copied from interface:HistoryEventHandler
Called by the process engine when an history event is fired.- Specified by:
handleEvents
in interfaceHistoryEventHandler
- Parameters:
historyEvents
- theHistoryEvent
that is about to be fired.
-