public class AcquireJobsCmd 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 |
|---|
AcquireJobsCmd(AsyncExecutor asyncExecutor) |
AcquireJobsCmd(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 void |
lockJob(JobInfoEntity job,
int lockTimeInMillis,
JobServiceConfiguration jobServiceConfiguration) |
protected AsyncExecutor asyncExecutor
protected int remainingCapacity
protected JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
public AcquireJobsCmd(AsyncExecutor asyncExecutor)
public AcquireJobsCmd(AsyncExecutor asyncExecutor, int remainingCapacity, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager)
public List<? extends JobInfoEntity> execute(CommandContext commandContext)
execute in interface Command<List<? extends JobInfoEntity>>protected void lockJob(JobInfoEntity job, int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
protected GregorianCalendar calculateLockExpirationTime(int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
Copyright © 2021 Flowable. All rights reserved.