Interface BatchJobHandler<T>
- 
- All Superinterfaces:
- JobHandler<BatchJobConfiguration>
 - All Known Implementing Classes:
- AbstractBatchJobHandler,- BatchSetRemovalTimeJobHandler,- BatchSetVariablesHandler,- DecisionSetRemovalTimeJobHandler,- DeleteHistoricDecisionInstancesJobHandler,- DeleteHistoricProcessInstancesJobHandler,- DeleteProcessInstancesJobHandler,- MessageCorrelationBatchJobHandler,- MigrationBatchJobHandler,- ModificationBatchJobHandler,- ProcessSetRemovalTimeJobHandler,- RestartProcessInstancesJobHandler,- SetExternalTaskRetriesJobHandler,- SetJobRetriesJobHandler,- UpdateProcessInstancesSuspendStateJobHandler
 
 public interface BatchJobHandler<T> extends JobHandler<BatchJobConfiguration> A batch job handler manages batch jobs based on the configurationBatchJobHandler. Used by a seed job to manage lifecycle of execution jobs.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancreateJobs(BatchEntity batch)Creates batch jobs for a batch.voiddeleteJobs(BatchEntity batch)Delete all jobs for a batch.JobDeclaration<?,MessageEntity>getJobDeclaration()Get the job declaration for batch jobs.TreadConfiguration(byte[] serializedConfiguration)Read the serialized configuration of the batch.byte[]writeConfiguration(T configuration)Converts the configuration of the batch to a byte array.- 
Methods inherited from interface org.camunda.bpm.engine.impl.jobexecutor.JobHandlerexecute, getType, newConfiguration, onDelete
 
- 
 
- 
- 
- 
Method Detail- 
writeConfigurationbyte[] writeConfiguration(T configuration) Converts the configuration of the batch to a byte array.- Parameters:
- configuration- the configuration object
- Returns:
- the serialized configuration
 
 - 
readConfigurationT readConfiguration(byte[] serializedConfiguration) Read the serialized configuration of the batch.- Parameters:
- serializedConfiguration- the serialized configuration
- Returns:
- the deserialized configuration object
 
 - 
getJobDeclarationJobDeclaration<?,MessageEntity> getJobDeclaration() Get the job declaration for batch jobs.- Returns:
- the batch job declaration
 
 - 
createJobsboolean createJobs(BatchEntity batch) Creates batch jobs for a batch.- Parameters:
- batch- the batch to create jobs for
- Returns:
- true of no more jobs have to be created for this batch, false otherwise
 
 - 
deleteJobsvoid deleteJobs(BatchEntity batch) Delete all jobs for a batch.- Parameters:
- batch- the batch to delete jobs for
 
 
- 
 
-