public class AcquireJobsWithGlobalAcquireLockCmd extends Object implements Command<List<? extends JobInfoEntity>>
| Modifier and Type | Field and Description |
|---|---|
protected AsyncExecutor |
asyncExecutor |
protected JobInfoEntityManager<? extends JobInfoEntity> |
jobEntityManager |
protected int |
remainingCapacity |
| Constructor and Description |
|---|
AcquireJobsWithGlobalAcquireLockCmd(AsyncExecutor asyncExecutor,
int remainingCapacity,
JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager) |
| Modifier and Type | Method and Description |
|---|---|
protected GregorianCalendar |
calculateLockExpirationTime(int lockTimeInMillis,
JobServiceConfiguration jobServiceConfiguration) |
List<? extends JobInfoEntity> |
execute(CommandContext commandContext) |
protected AsyncExecutor asyncExecutor
protected int remainingCapacity
protected JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
public AcquireJobsWithGlobalAcquireLockCmd(AsyncExecutor asyncExecutor, int remainingCapacity, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager)
public List<? extends JobInfoEntity> execute(CommandContext commandContext)
execute in interface Command<List<? extends JobInfoEntity>>protected GregorianCalendar calculateLockExpirationTime(int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
Copyright © 2021 Flowable. All rights reserved.