public class AcquireTimerJobsCmd extends Object implements Command<List<TimerJobEntity>>
| Modifier and Type | Field and Description |
|---|---|
protected AsyncExecutor |
asyncExecutor |
| Constructor and Description |
|---|
AcquireTimerJobsCmd(AsyncExecutor asyncExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected GregorianCalendar |
calculateLockExpirationTime(int lockTimeInMillis,
JobServiceConfiguration jobServiceConfiguration) |
List<TimerJobEntity> |
execute(CommandContext commandContext) |
protected void |
lockJob(CommandContext commandContext,
TimerJobEntity job,
int lockTimeInMillis,
JobServiceConfiguration jobServiceConfiguration) |
protected AsyncExecutor asyncExecutor
public AcquireTimerJobsCmd(AsyncExecutor asyncExecutor)
public List<TimerJobEntity> execute(CommandContext commandContext)
execute in interface Command<List<TimerJobEntity>>protected void lockJob(CommandContext commandContext, TimerJobEntity job, int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
protected GregorianCalendar calculateLockExpirationTime(int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
Copyright © 2021 Flowable. All rights reserved.