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 java.lang.Object implements HistoryEventHandler
AHistoryEventHandler
implementation which delegates to a list ofHistoryEventHandler
.- Author:
- Alexander Tyatenkov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<HistoryEventHandler>
historyEventHandlers
The list ofHistoryEventHandler
which consume the event.
-
Constructor Summary
Constructors Constructor Description CompositeHistoryEventHandler()
Non-argument constructor for default initialization.CompositeHistoryEventHandler(java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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(java.util.List<HistoryEvent> historyEvents)
Called by the process engine when an history event is fired.
-
-
-
Field Detail
-
historyEventHandlers
protected final java.util.List<HistoryEventHandler> historyEventHandlers
The list ofHistoryEventHandler
which consume the event.
-
-
Constructor Detail
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler()
Non-argument constructor for default initialization.
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler(HistoryEventHandler... historyEventHandlers)
Constructor that takes a varargs parameterHistoryEventHandler
that consume the event.- Parameters:
historyEventHandlers
- the list ofHistoryEventHandler
that consume the event.
-
CompositeHistoryEventHandler
public CompositeHistoryEventHandler(java.util.List<HistoryEventHandler> historyEventHandlers)
Constructor that takes a list ofHistoryEventHandler
that consume the event.- Parameters:
historyEventHandlers
- the list ofHistoryEventHandler
that consume the event.
-
-
Method Detail
-
add
public void add(HistoryEventHandler historyEventHandler)
Adds theHistoryEventHandler
to the list ofHistoryEventHandler
that consume the event.- Parameters:
historyEventHandler
- theHistoryEventHandler
that consume the event.
-
handleEvent
public void handleEvent(HistoryEvent historyEvent)
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
public void handleEvents(java.util.List<HistoryEvent> historyEvents)
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.
-
-