Class AsyncIndexingHistorySession
java.lang.Object
com.flowable.indexing.job.history.async.AsyncIndexingHistorySession
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Session
public class AsyncIndexingHistorySession
extends Object
implements org.flowable.common.engine.impl.interceptor.Session
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for the async history job data, to avoid messing with maps and lists. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.flowable.common.engine.impl.interceptor.CommandContextprotected org.flowable.common.engine.impl.interceptor.CommandContextCloseListenerprotected IndexingHistoryJobProducerprotected intprotected Map<org.flowable.job.service.JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> protected Stringstatic final Stringprotected org.flowable.common.engine.impl.cfg.TransactionContext -
Constructor Summary
ConstructorsConstructorDescriptionAsyncIndexingHistorySession(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexingHistoryJobProducer jobProducer, List<String> registeredJobDataTypes, List<String> registeredSingleJobDataTypes, int jobRetries) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistoricData(org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) voidaddHistoricData(org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId) voidaddOrReplaceHistoricData(org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration, com.fasterxml.jackson.databind.node.ObjectNode dataNode, String dataIdFieldName, String type, String tenantId) voidclose()voidflush()intcom.fasterxml.jackson.databind.node.ObjectNodegetMatchingData(org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration, String dataId, String dataIdFieldName, String type) Map<org.flowable.job.service.JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> org.flowable.common.engine.impl.cfg.TransactionContextprotected voidvoidsetJobDataTypes(List<String> jobDataTypes) voidsetJobRetries(int jobRetries) voidsetSessionData(Map<org.flowable.job.service.JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData) voidsetTenantId(String tenantId) voidsetTransactionContext(org.flowable.common.engine.impl.cfg.TransactionContext transactionContext)
-
Field Details
-
TIMESTAMP
- See Also:
-
jobRetries
protected int jobRetries -
commandContext
protected org.flowable.common.engine.impl.interceptor.CommandContext commandContext -
jobProducer
-
commandContextCloseListener
protected org.flowable.common.engine.impl.interceptor.CommandContextCloseListener commandContextCloseListener -
jobDataTypes
-
singleJobDataTypes
-
transactionContext
protected org.flowable.common.engine.impl.cfg.TransactionContext transactionContext -
tenantId
-
sessionData
protected Map<org.flowable.job.service.JobServiceConfiguration,AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData
-
-
Constructor Details
-
AsyncIndexingHistorySession
public AsyncIndexingHistorySession(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexingHistoryJobProducer jobProducer, List<String> registeredJobDataTypes, List<String> registeredSingleJobDataTypes, int jobRetries)
-
-
Method Details
-
initCommandContextCloseListener
protected void initCommandContextCloseListener() -
addHistoricData
public void addHistoricData(org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) -
addHistoricData
-
addOrReplaceHistoricData
-
getMatchingData
-
flush
public void flush()- Specified by:
flushin interfaceorg.flowable.common.engine.impl.interceptor.Session
-
close
public void close()- Specified by:
closein interfaceorg.flowable.common.engine.impl.interceptor.Session
-
getJobRetries
public int getJobRetries() -
setJobRetries
public void setJobRetries(int jobRetries) -
getTenantId
-
setTenantId
-
getSessionData
public Map<org.flowable.job.service.JobServiceConfiguration,AsyncIndexingHistorySession.AsyncHistorySessionData> getSessionData() -
setSessionData
public void setSessionData(Map<org.flowable.job.service.JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData) -
getJobDataTypes
-
setJobDataTypes
-
getSingleJobDataTypes
-
getTransactionContext
public org.flowable.common.engine.impl.cfg.TransactionContext getTransactionContext() -
setTransactionContext
public void setTransactionContext(org.flowable.common.engine.impl.cfg.TransactionContext transactionContext)
-