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 JobInfoprotected JobInfoEntityManager<? extends JobInfoEntity>protected JobServiceConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteJob(boolean unlock) protected voidhandleFailedJob(Throwable exception) protected booleanlockJob()voidrun()protected voidprotected voidprotected 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
-