public class CompositeHistoryEventHandler extends Object implements HistoryEventHandler
HistoryEventHandler implementation which delegates to a list of
HistoryEventHandler.| Modifier and Type | Field and Description |
|---|---|
protected List<HistoryEventHandler> |
historyEventHandlers
The list of
HistoryEventHandler which consume the event. |
| Constructor and Description |
|---|
CompositeHistoryEventHandler()
Non-argument constructor for default initialization.
|
CompositeHistoryEventHandler(HistoryEventHandler... historyEventHandlers)
Constructor that takes a varargs parameter
HistoryEventHandler that
consume the event. |
CompositeHistoryEventHandler(List<HistoryEventHandler> historyEventHandlers)
Constructor that takes a list of
HistoryEventHandler that consume
the event. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(HistoryEventHandler historyEventHandler)
Adds the
HistoryEventHandler to the list of
HistoryEventHandler 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.
|
protected final List<HistoryEventHandler> historyEventHandlers
HistoryEventHandler which consume the event.public CompositeHistoryEventHandler()
public CompositeHistoryEventHandler(HistoryEventHandler... historyEventHandlers)
HistoryEventHandler that
consume the event.historyEventHandlers - the list of HistoryEventHandler that consume the event.public CompositeHistoryEventHandler(List<HistoryEventHandler> historyEventHandlers)
HistoryEventHandler that consume
the event.historyEventHandlers - the list of HistoryEventHandler that consume the event.public void add(HistoryEventHandler historyEventHandler)
HistoryEventHandler to the list of
HistoryEventHandler that consume the event.historyEventHandler - the HistoryEventHandler that consume the event.public void handleEvent(HistoryEvent historyEvent)
HistoryEventHandlerhandleEvent in interface HistoryEventHandlerhistoryEvent - the HistoryEvent that is about to be fired.public void handleEvents(List<HistoryEvent> historyEvents)
HistoryEventHandlerhandleEvents in interface HistoryEventHandlerhistoryEvents - the HistoryEvent that is about to be fired.Copyright © 2013–2019 camunda services GmbH. All rights reserved.