Interface JobInfoEntityManager<T extends JobInfoEntity>
- All Superinterfaces:
EntityManager<T>
- All Known Subinterfaces:
ExternalWorkerJobEntityManager
,HistoryJobEntityManager
,JobEntityManager
,TimerJobEntityManager
- All Known Implementing Classes:
ExternalWorkerJobEntityManagerImpl
,HistoryJobEntityManagerImpl
,JobEntityManagerImpl
,JobInfoEntityManagerImpl
,TimerJobEntityManagerImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkUpdateJobLockWithoutRevisionCheck
(List<T> jobEntities, String lockOwner, Date lockExpirationTime) findExpiredJobs
(List<String> enabledCategories, Page page) findJobsByExecutionId
(String executionId) Returns allJobEntity
instances related to on ExecutionEntity.findJobsByProcessInstanceId
(String processInstanceId) Returns allJobEntity
instances related to one process instance ExecutionEntity.findJobsToExecute
(List<String> enabledCategories, Page page) ReturnsJobEntity
that are eligible to be executed.findJobsToExecuteAndLockInBulk
(List<String> enabledCategories, Page page, String lockOwner, Date lockExpirationTime) void
resetExpiredJob
(String jobId) Resets an expired job.void
updateJobTenantIdForDeployment
(String deploymentId, String newTenantId) Changes the tenantId for all jobs related to a given DeploymentEntity.
-
Method Details
-
findJobsToExecute
ReturnsJobEntity
that are eligible to be executed. For example used by the defaultAcquireJobsCmd
command used by the default AcquireTimerJobsRunnable implementation to get async jobs that can be executed. -
findJobsByExecutionId
Returns allJobEntity
instances related to on ExecutionEntity. -
findJobsByProcessInstanceId
Returns allJobEntity
instances related to one process instance ExecutionEntity. -
findExpiredJobs
-
resetExpiredJob
Resets an expired job. These are jobs that were locked, but not completed. Resetting these will make them available for being picked up by other executors. -
updateJobTenantIdForDeployment
Changes the tenantId for all jobs related to a given DeploymentEntity. -
findJobsToExecuteAndLockInBulk
-
bulkUpdateJobLockWithoutRevisionCheck
-