org.camunda.bpm.engine.impl.history.producer
Class CacheAwareHistoryEventProducer

java.lang.Object
  extended by org.camunda.bpm.engine.impl.history.producer.DefaultHistoryEventProducer
      extended by org.camunda.bpm.engine.impl.history.producer.CacheAwareHistoryEventProducer
All Implemented Interfaces:
HistoryEventProducer

public class CacheAwareHistoryEventProducer
extends DefaultHistoryEventProducer

This HistoryEventProducer is aware of the DbEntityManager cache and works in combination with the DbHistoryEventHandler.

Author:
Daniel Meyer

Constructor Summary
CacheAwareHistoryEventProducer()
           
 
Method Summary
protected
<T extends HistoryEvent>
T
findInCache(Class<T> type, String id)
          find a cached entity by primary key
protected  HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricIncidentEventEntity loadIncidentEvent(Incident incident)
           
protected  HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.history.producer.DefaultHistoryEventProducer
createActivityInstanceEndEvt, createActivityInstanceStartEvt, createActivityInstanceUpdateEvt, createFormPropertyUpdateEvt, createHistoricIncidentCreateEvt, createHistoricIncidentDeleteEvt, createHistoricIncidentEvt, createHistoricIncidentResolveEvt, createHistoricJobLogCreateEvt, createHistoricJobLogDeleteEvt, createHistoricJobLogEvt, createHistoricJobLogFailedEvt, createHistoricJobLogSuccessfulEvt, createHistoricVariableCreateEvt, createHistoricVariableDeleteEvt, createHistoricVariableEvent, createHistoricVariableUpdateEvt, createProcessInstanceEndEvt, createProcessInstanceStartEvt, createProcessInstanceUpdateEvt, createTaskInstanceCompleteEvt, createTaskInstanceCreateEvt, createTaskInstanceUpdateEvt, createUserOperationLogEvents, initActivityInstanceEvent, initHistoricIncidentEvent, initHistoricJobLogEvent, initHistoricVariableUpdateEvt, initProcessInstanceEvent, initSequenceCounter, initSequenceCounter, initSequenceCounter, initSequenceCounter, initTaskInstanceEvent, initUserOperationLogEvent, newActivityInstanceEventEntity, newHistoricFormPropertyEvent, newHistoricJobLogEntity, newIncidentEventEntity, newProcessInstanceEventEntity, newTaskInstanceEventEntity, newVariableUpdateEventEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheAwareHistoryEventProducer

public CacheAwareHistoryEventProducer()
Method Detail

loadActivityInstanceEventEntity

protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
Overrides:
loadActivityInstanceEventEntity in class DefaultHistoryEventProducer

loadProcessInstanceEventEntity

protected HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
Overrides:
loadProcessInstanceEventEntity in class DefaultHistoryEventProducer

loadTaskInstanceEvent

protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
Overrides:
loadTaskInstanceEvent in class DefaultHistoryEventProducer

loadIncidentEvent

protected HistoricIncidentEventEntity loadIncidentEvent(Incident incident)
Overrides:
loadIncidentEvent in class DefaultHistoryEventProducer

findInCache

protected <T extends HistoryEvent> T findInCache(Class<T> type,
                                                 String id)
find a cached entity by primary key



Copyright © 2016 camunda services GmbH. All rights reserved.