Class TenantAwareExecuteAsyncRunnableFactory
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.multitenant.TenantAwareExecuteAsyncRunnableFactory
-
- All Implemented Interfaces:
ExecuteAsyncRunnableFactory
public class TenantAwareExecuteAsyncRunnableFactory extends java.lang.Object implements ExecuteAsyncRunnableFactory
Factory that produces aRunnablethat executes aJobEntity. Can be used to create special implementations for specific tenants.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringtenantIdprotected TenantInfoHoldertenantInfoHolder
-
Constructor Summary
Constructors Constructor Description TenantAwareExecuteAsyncRunnableFactory(TenantInfoHolder tenantInfoHolder, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.RunnablecreateExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
-
Field Detail
-
tenantInfoHolder
protected TenantInfoHolder tenantInfoHolder
-
tenantId
protected java.lang.String tenantId
-
-
Constructor Detail
-
TenantAwareExecuteAsyncRunnableFactory
public TenantAwareExecuteAsyncRunnableFactory(TenantInfoHolder tenantInfoHolder, java.lang.String tenantId)
-
-
Method Detail
-
createExecuteAsyncRunnable
public java.lang.Runnable createExecuteAsyncRunnable(Job job, ProcessEngineConfigurationImpl processEngineConfiguration)
- Specified by:
createExecuteAsyncRunnablein interfaceExecuteAsyncRunnableFactory
-
-