org.camunda.bpm.engine.impl.history.handler
Class CompositeHistoryEventHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.history.handler.CompositeHistoryEventHandler
All Implemented Interfaces:
HistoryEventHandler
Direct Known Subclasses:
CompositeDbHistoryEventHandler

public class CompositeHistoryEventHandler
extends Object
implements HistoryEventHandler

A HistoryEventHandler implementation which delegates to a list of HistoryEventHandler.

Author:
Alexander Tyatenkov

Field Summary
protected  List<HistoryEventHandler> historyEventHandlers
          The list of HistoryEventHandler which consume the event.
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

historyEventHandlers

protected final List<HistoryEventHandler> historyEventHandlers
The list of HistoryEventHandler 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 parameter HistoryEventHandler that consume the event.

Parameters:
historyEventHandlers - the list of HistoryEventHandler that consume the event.

CompositeHistoryEventHandler

public CompositeHistoryEventHandler(List<HistoryEventHandler> historyEventHandlers)
Constructor that takes a list of HistoryEventHandler that consume the event.

Parameters:
historyEventHandlers - the list of HistoryEventHandler that consume the event.
Method Detail

add

public void add(HistoryEventHandler historyEventHandler)
Adds the HistoryEventHandler to the list of HistoryEventHandler that consume the event.

Parameters:
historyEventHandler - the HistoryEventHandler 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 interface HistoryEventHandler
Parameters:
historyEvent - the HistoryEvent that is about to be fired.

handleEvents

public void handleEvents(List<HistoryEvent> historyEvents)
Description copied from interface: HistoryEventHandler
Called by the process engine when an history event is fired.

Specified by:
handleEvents in interface HistoryEventHandler
Parameters:
historyEvents - the HistoryEvent that is about to be fired.


Copyright © 2016 camunda services GmbH. All rights reserved.