public class TenantAwareAcquireTimerJobsRunnable extends AcquireTimerJobsRunnable
AcquireTimerJobsRunnable by setting the 'tenant' context before executing.| Modifier and Type | Field and Description |
|---|---|
protected String |
tenantId |
protected TenantInfoHolder |
tenantInfoHolder |
asyncExecutor, commandExecutor, configuration, isInterrupted, isWaiting, jobManager, lifecycleListener, lockManager, MONITOR, moveExecutorPoolSize, moveTimerJobsExecutorService| Constructor and Description |
|---|
TenantAwareAcquireTimerJobsRunnable(AsyncExecutor asyncExecutor,
TenantInfoHolder tenantInfoHolder,
String tenantId,
AcquireTimerLifecycleListener lifecycleListener,
AcquireJobsRunnableConfiguration configuration,
int moveExecutorPoolSize) |
TenantAwareAcquireTimerJobsRunnable(AsyncExecutor asyncExecutor,
TenantInfoHolder tenantInfoHolder,
String tenantId,
int moveExecutorPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeMoveTimerJobsToExecutableJobs(List<TimerJobEntity> timerJobs) |
protected ExecutorPerTenantAsyncExecutor |
getTenantAwareAsyncExecutor() |
void |
run() |
createLockManager, createTimerMoveExecutorService, executeAcquireAndMoveCycle, getEngineName, logOptimisticLockingException, setConfiguration, sleep, stop, unlockTimerJobsprotected TenantInfoHolder tenantInfoHolder
protected String tenantId
public TenantAwareAcquireTimerJobsRunnable(AsyncExecutor asyncExecutor, TenantInfoHolder tenantInfoHolder, String tenantId, int moveExecutorPoolSize)
public TenantAwareAcquireTimerJobsRunnable(AsyncExecutor asyncExecutor, TenantInfoHolder tenantInfoHolder, String tenantId, AcquireTimerLifecycleListener lifecycleListener, AcquireJobsRunnableConfiguration configuration, int moveExecutorPoolSize)
protected ExecutorPerTenantAsyncExecutor getTenantAwareAsyncExecutor()
public void run()
run in interface Runnablerun in class AcquireTimerJobsRunnableprotected void executeMoveTimerJobsToExecutableJobs(List<TimerJobEntity> timerJobs)
executeMoveTimerJobsToExecutableJobs in class AcquireTimerJobsRunnableCopyright © 2021 Flowable. All rights reserved.