Class HistoryCleanupJobDeclaration
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupJobDeclaration
- All Implemented Interfaces:
Serializable
public class HistoryCleanupJobDeclaration
extends JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
Job declaration for history cleanup.
- Author:
- Svetlana Dorokhova
- See Also:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected EverLivingJobEntity
newJobInstance
(HistoryCleanupContext context) protected void
postInitialize
(HistoryCleanupContext context, EverLivingJobEntity job) general callback to override any configuration after the defaults have been appliedreconfigure
(HistoryCleanupContext context, EverLivingJobEntity job) Re-initialize configuration part.resolveDueDate
(HistoryCleanupContext context) protected ExecutionEntity
resolveExecution
(HistoryCleanupContext context) Returns the execution in which context the job is created.protected HistoryCleanupJobHandlerConfiguration
protected int
resolveRetries
(HistoryCleanupContext context) Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getActivityId, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getProcessDefinition, isExclusive, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
Constructor Details
-
HistoryCleanupJobDeclaration
public HistoryCleanupJobDeclaration()
-
-
Method Details
-
resolveExecution
Description copied from class:JobDeclaration
Returns the execution in which context the job is created. The execution is used to determine the job's priority based on a BPMN activity the execution is currently executing. May be null.- Specified by:
resolveExecution
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
newJobInstance
- Specified by:
newJobInstance
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
postInitialize
Description copied from class:JobDeclaration
general callback to override any configuration after the defaults have been applied- Overrides:
postInitialize
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
reconfigure
Description copied from class:JobDeclaration
Re-initialize configuration part.- Overrides:
reconfigure
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
resolveJobHandlerConfiguration
protected HistoryCleanupJobHandlerConfiguration resolveJobHandlerConfiguration(HistoryCleanupContext context) - Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
resolveRetries
- Overrides:
resolveRetries
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
resolveDueDate
- Overrides:
resolveDueDate
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-
getJobPriorityProvider
- Overrides:
getJobPriorityProvider
in classJobDeclaration<HistoryCleanupContext,
EverLivingJobEntity>
-