Class HistoryCleanupJobHandler
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupJobHandler
- All Implemented Interfaces:
JobHandler<HistoryCleanupJobHandlerConfiguration>
public class HistoryCleanupJobHandler
extends Object
implements JobHandler<HistoryCleanupJobHandlerConfiguration>
Job handler for history cleanup job.
- Author:
- Svetlana Dorokhova
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) protected HistoryCleanupRemovalTimegetType()protected HistoryCleanupHandlerinitCleanupHandler(HistoryCleanupJobHandlerConfiguration configuration, CommandContext commandContext) protected booleanisHistoryCleanupStrategyRemovalTimeBased(CommandContext commandContext) protected booleanisWithinBatchWindow(CommandContext commandContext) newConfiguration(String canonicalString) voidonDelete(HistoryCleanupJobHandlerConfiguration configuration, JobEntity jobEntity) Clean up before job is deleted.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
HistoryCleanupJobHandler
public HistoryCleanupJobHandler()
-
-
Method Details
-
execute
public void execute(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executein interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
getTimeBasedHandler
-
initCleanupHandler
protected HistoryCleanupHandler initCleanupHandler(HistoryCleanupJobHandlerConfiguration configuration, CommandContext commandContext) -
isHistoryCleanupStrategyRemovalTimeBased
-
isWithinBatchWindow
-
newConfiguration
- Specified by:
newConfigurationin interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
getType
- Specified by:
getTypein interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
onDelete
Description copied from interface:JobHandlerClean up before job is deleted. Like removing of auxiliary entities specific for this job handler.- Specified by:
onDeletein interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>- Parameters:
configuration- the job handler configurationjobEntity- the job entity to be deleted
-