Class ExecuteAsyncRunnable
java.lang.Object
org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TenantAwareExecuteAsyncRunnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Jobprotected Stringprotected ProcessEngineConfigurationImpl -
Constructor Summary
ConstructorsConstructorDescriptionExecuteAsyncRunnable(String jobId, ProcessEngineConfigurationImpl processEngineConfiguration) ExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidhandleFailedJob(Throwable exception) protected booleanReturns true if lock succeeded, or no lock was needed.voidrun()protected voidprotected voidprotected void
-
Field Details
-
jobId
-
job
-
processEngineConfiguration
-
-
Constructor Details
-
ExecuteAsyncRunnable
public ExecuteAsyncRunnable(String jobId, ProcessEngineConfigurationImpl processEngineConfiguration) -
ExecuteAsyncRunnable
-
-
Method Details
-
run
public void run() -
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
-