Class TenantAwareExecuteAsyncRunnable
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
org.flowable.job.service.impl.asyncexecutor.multitenant.TenantAwareExecuteAsyncRunnable
- All Implemented Interfaces:
Runnable
Extends the default
ExecuteAsyncRunnable
by setting the 'tenant' context before executing.- Author:
- Joram Barrez
-
Field Summary
FieldsFields inherited from class org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
asyncRunnableExecutionExceptionHandlers, job, jobEntityManager, jobServiceConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionTenantAwareExecuteAsyncRunnable
(JobInfo job, JobServiceConfiguration jobServiceConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId) -
Method Summary
Methods inherited from class org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable
executeJob, handleFailedJob, lockJob, runInternally, unacquireJob, unlockJobIfNeeded
-
Field Details
-
tenantInfoHolder
-
tenantId
-
-
Constructor Details
-
TenantAwareExecuteAsyncRunnable
public TenantAwareExecuteAsyncRunnable(JobInfo job, JobServiceConfiguration jobServiceConfiguration, TenantInfoHolder tenantInfoHolder, String tenantId)
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classExecuteAsyncRunnable
-