org.camunda.bpm.engine.impl.jobexecutor
Interface JobHandler<T extends JobHandlerConfiguration>

All Known Subinterfaces:
BatchJobHandler<T>
All Known Implementing Classes:
AbstractBatchJobHandler, AsyncContinuationJobHandler, BatchMonitorJobHandler, BatchSeedJobHandler, DeleteHistoricProcessInstancesJobHandler, DeleteProcessInstancesJobHandler, HistoryCleanupJobHandler, MigrationBatchJobHandler, ModificationBatchJobHandler, ProcessEventJobHandler, RestartProcessInstancesJobHandler, SetExternalTaskRetriesJobHandler, SetJobRetriesJobHandler, TimerActivateJobDefinitionHandler, TimerActivateProcessDefinitionHandler, TimerCatchIntermediateEventJobHandler, TimerChangeJobDefinitionSuspensionStateJobHandler, TimerChangeProcessDefinitionSuspensionStateJobHandler, TimerEventJobHandler, TimerExecuteNestedActivityJobHandler, TimerStartEventJobHandler, TimerStartEventSubprocessJobHandler, TimerSuspendJobDefinitionHandler, TimerSuspendProcessDefinitionHandler, UpdateProcessInstancesSuspendStateJobHandler

public interface JobHandler<T extends JobHandlerConfiguration>

Author:
Tom Baeyens

Method Summary
 void execute(T configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 String getType()
           
 T newConfiguration(String canonicalString)
           
 void onDelete(T configuration, JobEntity jobEntity)
          Clean up before job is deleted.
 

Method Detail

getType

String getType()

execute

void execute(T configuration,
             ExecutionEntity execution,
             CommandContext commandContext,
             String tenantId)

newConfiguration

T newConfiguration(String canonicalString)

onDelete

void onDelete(T configuration,
              JobEntity jobEntity)
Clean up before job is deleted. Like removing of auxiliary entities specific for this job handler.

Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted


Copyright © 2017 camunda services GmbH. All rights reserved.