public class HistoryCleanupJobHandler extends Object implements JobHandler<HistoryCleanupJobHandlerConfiguration>
| Constructor and Description |
|---|
HistoryCleanupJobHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HistoryCleanupJobHandlerConfiguration configuration,
ExecutionEntity execution,
CommandContext commandContext,
String tenantId) |
String |
getType() |
protected HistoryCleanupHandler |
initCleanupHandler(HistoryCleanupJobHandlerConfiguration configuration,
CommandContext commandContext) |
protected boolean |
isHistoryCleanupStrategyRemovalTimeBased(CommandContext commandContext) |
protected boolean |
isWithinBatchWindow(CommandContext commandContext) |
HistoryCleanupJobHandlerConfiguration |
newConfiguration(String canonicalString) |
void |
onDelete(HistoryCleanupJobHandlerConfiguration configuration,
JobEntity jobEntity)
Clean up before job is deleted.
|
public static final String TYPE
public void execute(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
execute in interface JobHandler<HistoryCleanupJobHandlerConfiguration>protected HistoryCleanupHandler initCleanupHandler(HistoryCleanupJobHandlerConfiguration configuration, CommandContext commandContext)
protected boolean isHistoryCleanupStrategyRemovalTimeBased(CommandContext commandContext)
protected boolean isWithinBatchWindow(CommandContext commandContext)
public HistoryCleanupJobHandlerConfiguration newConfiguration(String canonicalString)
newConfiguration in interface JobHandler<HistoryCleanupJobHandlerConfiguration>public String getType()
getType in interface JobHandler<HistoryCleanupJobHandlerConfiguration>public void onDelete(HistoryCleanupJobHandlerConfiguration configuration, JobEntity jobEntity)
JobHandleronDelete in interface JobHandler<HistoryCleanupJobHandlerConfiguration>configuration - the job handler configurationjobEntity - the job entity to be deletedCopyright © 2013–2019 camunda services GmbH. All rights reserved.