Class ExecuteAsyncRunnable
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
TenantAwareExecuteAsyncRunnable
public class ExecuteAsyncRunnable extends java.lang.Object implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected Jobjobprotected java.lang.StringjobIdprotected ProcessEngineConfigurationImplprocessEngineConfiguration
-
Constructor Summary
Constructors Constructor Description ExecuteAsyncRunnable(java.lang.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(java.lang.Throwable exception)protected booleanlockJobIfNeeded()Returns true if lock succeeded, or no lock was needed.voidrun()protected voidunacquireJob()protected voidunlockJobIfNeeded()
-
-
-
Field Detail
-
jobId
protected java.lang.String jobId
-
job
protected Job job
-
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
-
-
Constructor Detail
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(java.lang.String jobId, ProcessEngineConfigurationImpl processEngineConfiguration)
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
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(java.lang.Throwable exception)
-
-