Class ExecuteAsyncRunnable
- java.lang.Object
-
- org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TenantAwareExecuteAsyncRunnable
public class ExecuteAsyncRunnable extends Object implements Runnable
- Author:
- Joram Barrez, Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AsyncRunnableExecutionExceptionHandler>asyncRunnableExecutionExceptionHandlersprotected JobInfojobprotected JobInfoEntityManager<? extends JobInfoEntity>jobEntityManagerprotected StringjobIdprotected JobServiceConfigurationjobServiceConfiguration
-
Constructor Summary
Constructors Constructor Description ExecuteAsyncRunnable(String jobId, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)ExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteJob(boolean unlock)protected voidhandleFailedJob(Throwable exception)protected booleanlockJob()voidrun()protected voidunacquireJob()protected voidunlockJobIfNeeded()
-
-
-
Field Detail
-
jobId
protected String jobId
-
job
protected JobInfo job
-
jobServiceConfiguration
protected JobServiceConfiguration jobServiceConfiguration
-
jobEntityManager
protected JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
-
asyncRunnableExecutionExceptionHandlers
protected List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers
-
-
Constructor Detail
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(String jobId, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
-
-
Method Detail
-
executeJob
protected void executeJob(boolean unlock)
-
unlockJobIfNeeded
protected void unlockJobIfNeeded()
-
lockJob
protected boolean lockJob()
-
unacquireJob
protected void unacquireJob()
-
handleFailedJob
protected void handleFailedJob(Throwable exception)
-
-