public class DefaultAsyncHistoryJobProducer extends Object implements AsyncHistoryListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
asyncHistoryJsonGroupingThreshold |
protected String |
historyJobScopeType |
protected boolean |
isAsyncHistoryJsonGroupingEnabled |
protected boolean |
isJsonGzipCompressionEnabled |
protected String |
jobTypeAsyncHistory |
protected String |
jobTypeAsyncHistoryZipped |
| Constructor and Description |
|---|
DefaultAsyncHistoryJobProducer(String jobTypeAsyncHistory,
String jobTypeAsyncHistoryZipped) |
DefaultAsyncHistoryJobProducer(String jobTypeAsyncHistory,
String jobTypeAsyncHistoryZipped,
String historyJobScopeType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJsonToJob(CommandContext commandContext,
HistoryJobEntity jobEntity,
com.fasterxml.jackson.databind.JsonNode rootObjectNode,
boolean applyCompression) |
protected byte[] |
compress(byte[] bytes) |
protected HistoryJobEntity |
createAndInsertJobEntity(CommandContext commandContext,
AsyncHistorySession asyncHistorySession,
String jobType) |
protected List<HistoryJobEntity> |
createJobsWithHistoricalData(List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes,
CommandContext commandContext) |
int |
getAsyncHistoryJsonGroupingThreshold() |
List<HistoryJobEntity> |
historyDataGenerated(List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes) |
boolean |
isAsyncHistoryJsonGroupingEnabled() |
boolean |
isJsonGzipCompressionEnabled() |
protected void |
processHistoryJobEntities(List<HistoryJobEntity> historyJobEntities) |
void |
setAsyncHistoryJsonGroupingEnabled(boolean isAsyncHistoryJsonGroupingEnabled) |
void |
setAsyncHistoryJsonGroupingThreshold(int asyncHistoryJsonGroupingThreshold) |
void |
setJsonGzipCompressionEnabled(boolean isJsonGzipCompressionEnabled) |
protected String jobTypeAsyncHistory
protected String jobTypeAsyncHistoryZipped
protected String historyJobScopeType
protected boolean isJsonGzipCompressionEnabled
protected boolean isAsyncHistoryJsonGroupingEnabled
protected int asyncHistoryJsonGroupingThreshold
public DefaultAsyncHistoryJobProducer(String jobTypeAsyncHistory, String jobTypeAsyncHistoryZipped)
public List<HistoryJobEntity> historyDataGenerated(List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes)
historyDataGenerated in interface AsyncHistoryListenerprotected List<HistoryJobEntity> createJobsWithHistoricalData(List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes, CommandContext commandContext)
protected HistoryJobEntity createAndInsertJobEntity(CommandContext commandContext, AsyncHistorySession asyncHistorySession, String jobType)
protected void addJsonToJob(CommandContext commandContext, HistoryJobEntity jobEntity, com.fasterxml.jackson.databind.JsonNode rootObjectNode, boolean applyCompression)
protected byte[] compress(byte[] bytes)
protected void processHistoryJobEntities(List<HistoryJobEntity> historyJobEntities)
public boolean isJsonGzipCompressionEnabled()
public void setJsonGzipCompressionEnabled(boolean isJsonGzipCompressionEnabled)
public boolean isAsyncHistoryJsonGroupingEnabled()
public void setAsyncHistoryJsonGroupingEnabled(boolean isAsyncHistoryJsonGroupingEnabled)
public int getAsyncHistoryJsonGroupingThreshold()
public void setAsyncHistoryJsonGroupingThreshold(int asyncHistoryJsonGroupingThreshold)
Copyright © 2018 Flowable. All rights reserved.