Class TenantAwareExecuteAsyncRunnable
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
-
- org.activiti.engine.impl.asyncexecutor.multitenant.TenantAwareExecuteAsyncRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
public class TenantAwareExecuteAsyncRunnable extends ExecuteAsyncRunnable
Extends the defaultExecuteAsyncRunnableby setting the 'tenant' context before executing.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringtenantIdprotected TenantInfoHoldertenantInfoHolder-
Fields inherited from class org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
job, jobId, processEngineConfiguration
-
-
Constructor Summary
Constructors Constructor Description TenantAwareExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration, TenantInfoHolder tenantInfoHolder, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable
executeJob, handleFailedJob, lockJobIfNeeded, unacquireJob, unlockJobIfNeeded
-
-
-
-
Field Detail
-
tenantInfoHolder
protected TenantInfoHolder tenantInfoHolder
-
tenantId
protected java.lang.String tenantId
-
-
Constructor Detail
-
TenantAwareExecuteAsyncRunnable
public TenantAwareExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration, TenantInfoHolder tenantInfoHolder, java.lang.String tenantId)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classExecuteAsyncRunnable
-
-