Class ExecuteAsyncRunnable
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TenantAwareExecuteAsyncRunnable
- Author:
- Joram Barrez, Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AsyncRunnableExecutionExceptionHandler>
protected final JobInfo
protected JobInfoEntityManager<? extends JobInfoEntity>
protected JobServiceConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionExecuteAsyncRunnable
(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeJob
(boolean unlock) protected void
handleFailedJob
(Throwable exception) protected boolean
lockJob()
void
run()
protected void
protected void
protected void
-
Field Details
-
job
-
jobServiceConfiguration
-
jobEntityManager
-
asyncRunnableExecutionExceptionHandlers
-
-
Constructor Details
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
-
-
Method Details
-
run
public void run() -
runInternally
protected void runInternally() -
executeJob
protected void executeJob(boolean unlock) -
unlockJobIfNeeded
protected void unlockJobIfNeeded() -
lockJob
protected boolean lockJob() -
unacquireJob
protected void unacquireJob() -
handleFailedJob
-