Class AsyncIndexingHistorySession
java.lang.Object
com.flowable.indexing.job.history.async.AsyncIndexingHistorySession
- All Implemented Interfaces:
Session
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Wrapper for the async history job data, to avoid messing with maps and lists. -
Field Summary
Modifier and TypeFieldDescriptionprotected CommandContext
protected CommandContextCloseListener
protected IndexingHistoryJobProducer
protected int
protected String
static final String
protected TransactionContext
-
Constructor Summary
ConstructorDescriptionAsyncIndexingHistorySession
(CommandContext commandContext, IndexingHistoryJobProducer jobProducer, List<String> registeredJobDataTypes, int jobRetries) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHistoricData
(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) void
addHistoricData
(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId) void
addOrReplaceHistoricData
(JobServiceConfiguration jobServiceConfiguration, com.fasterxml.jackson.databind.node.ObjectNode dataNode, String dataIdFieldName, String type, String tenantId) void
close()
void
flush()
int
com.fasterxml.jackson.databind.node.ObjectNode
getMatchingData
(JobServiceConfiguration jobServiceConfiguration, String dataId, String dataIdFieldName, String type) protected void
void
setJobDataTypes
(List<String> jobDataTypes) void
setJobRetries
(int jobRetries) void
setSessionData
(Map<JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData) void
setTenantId
(String tenantId) void
setTransactionContext
(TransactionContext transactionContext)
-
Field Details
-
TIMESTAMP
- See Also:
-
jobRetries
protected int jobRetries -
commandContext
-
jobProducer
-
commandContextCloseListener
-
jobDataTypes
-
transactionContext
-
tenantId
-
sessionData
protected Map<JobServiceConfiguration,AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData
-
-
Constructor Details
-
AsyncIndexingHistorySession
public AsyncIndexingHistorySession(CommandContext commandContext, IndexingHistoryJobProducer jobProducer, List<String> registeredJobDataTypes, int jobRetries)
-
-
Method Details
-
initCommandContextCloseListener
protected void initCommandContextCloseListener() -
addHistoricData
public void addHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) -
addHistoricData
public void addHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId) -
addOrReplaceHistoricData
public void addOrReplaceHistoricData(JobServiceConfiguration jobServiceConfiguration, com.fasterxml.jackson.databind.node.ObjectNode dataNode, String dataIdFieldName, String type, String tenantId) -
getMatchingData
public com.fasterxml.jackson.databind.node.ObjectNode getMatchingData(JobServiceConfiguration jobServiceConfiguration, String dataId, String dataIdFieldName, String type) -
flush
public void flush() -
close
public void close() -
getJobRetries
public int getJobRetries() -
setJobRetries
public void setJobRetries(int jobRetries) -
getTenantId
-
setTenantId
-
getSessionData
public Map<JobServiceConfiguration,AsyncIndexingHistorySession.AsyncHistorySessionData> getSessionData() -
setSessionData
public void setSessionData(Map<JobServiceConfiguration, AsyncIndexingHistorySession.AsyncHistorySessionData> sessionData) -
getJobDataTypes
-
setJobDataTypes
-
getTransactionContext
-
setTransactionContext
-