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