Class TenantAwareExecuteAsyncRunnable
- java.lang.Object
-
- org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
-
- org.flowable.job.service.impl.asyncexecutor.multitenant.TenantAwareExecuteAsyncRunnable
-
- All Implemented Interfaces:
Runnable
public class TenantAwareExecuteAsyncRunnable extends ExecuteAsyncRunnable
Extends the defaultExecuteAsyncRunnableby setting the 'tenant' context before executing.- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected StringtenantIdprotected TenantInfoHoldertenantInfoHolder-
Fields inherited from class org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
asyncRunnableExecutionExceptionHandlers, job, jobEntityManager, jobId, jobServiceConfiguration
-
-
Constructor Summary
Constructors Constructor Description TenantAwareExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
executeJob, handleFailedJob, lockJob, unacquireJob, unlockJobIfNeeded
-
-
-
-
Field Detail
-
tenantInfoHolder
protected TenantInfoHolder tenantInfoHolder
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
TenantAwareExecuteAsyncRunnable
public TenantAwareExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceRunnable- Overrides:
runin classExecuteAsyncRunnable
-
-