public class ExecuteAsyncRunnable extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected List<AsyncRunnableExecutionExceptionHandler> |
asyncRunnableExecutionExceptionHandlers |
protected JobInfo |
job |
protected JobInfoEntityManager<? extends JobInfoEntity> |
jobEntityManager |
protected String |
jobId |
protected JobServiceConfiguration |
jobServiceConfiguration |
| Constructor and Description |
|---|
ExecuteAsyncRunnable(JobInfo job,
JobServiceConfiguration jobServiceConfiguration,
JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager,
AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler) |
ExecuteAsyncRunnable(String jobId,
JobServiceConfiguration jobServiceConfiguration,
JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager,
AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeJob(boolean unlock) |
protected void |
handleFailedJob(Throwable exception) |
protected boolean |
lockJob() |
void |
run() |
protected void |
unacquireJob() |
protected void |
unlockJobIfNeeded() |
protected String jobId
protected JobInfo job
protected JobServiceConfiguration jobServiceConfiguration
protected JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
protected List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers
public ExecuteAsyncRunnable(String jobId, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
public ExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
protected void executeJob(boolean unlock)
protected void unlockJobIfNeeded()
protected boolean lockJob()
protected void unacquireJob()
protected void handleFailedJob(Throwable exception)
Copyright © 2018 Flowable. All rights reserved.