Class ExecuteAsyncRunnable
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TenantAwareExecuteAsyncRunnable
public class ExecuteAsyncRunnable extends Object implements Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected Jobjobprotected StringjobIdprotected ProcessEngineConfigurationImplprocessEngineConfiguration
-
Constructor Summary
Constructors Constructor Description ExecuteAsyncRunnable(String jobId, ProcessEngineConfigurationImpl processEngineConfiguration)ExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteJob()protected voidhandleFailedJob(Throwable exception)protected booleanlockJobIfNeeded()Returns true if lock succeeded, or no lock was needed.voidrun()protected voidrunInternal()protected voidunacquireJob()protected voidunlockJobIfNeeded()
-
-
-
Field Detail
-
jobId
protected String jobId
-
job
protected Job job
-
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
-
-
Constructor Detail
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(String jobId, ProcessEngineConfigurationImpl processEngineConfiguration)
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
runInternal
protected void runInternal()
-
executeJob
protected void executeJob()
-
unlockJobIfNeeded
protected void unlockJobIfNeeded()
-
lockJobIfNeeded
protected boolean lockJobIfNeeded()
Returns true if lock succeeded, or no lock was needed. Returns false if locking was unsuccessfull.
-
unacquireJob
protected void unacquireJob()
-
handleFailedJob
protected void handleFailedJob(Throwable exception)
-
-