Class AcquireTimerJobsCmd
- java.lang.Object
-
- org.flowable.job.service.impl.cmd.AcquireTimerJobsCmd
-
- All Implemented Interfaces:
Command<List<TimerJobEntity>>
public class AcquireTimerJobsCmd extends Object implements Command<List<TimerJobEntity>>
- Author:
- Tijs Rademakers, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected AsyncExecutorasyncExecutor
-
Constructor Summary
Constructors Constructor Description AcquireTimerJobsCmd(AsyncExecutor asyncExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GregorianCalendarcalculateLockExpirationTime(int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)List<TimerJobEntity>execute(CommandContext commandContext)protected voidlockJob(CommandContext commandContext, TimerJobEntity job, int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
-
-
-
Field Detail
-
asyncExecutor
protected AsyncExecutor asyncExecutor
-
-
Constructor Detail
-
AcquireTimerJobsCmd
public AcquireTimerJobsCmd(AsyncExecutor asyncExecutor)
-
-
Method Detail
-
execute
public List<TimerJobEntity> execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<List<TimerJobEntity>>
-
lockJob
protected void lockJob(CommandContext commandContext, TimerJobEntity job, int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
-
calculateLockExpirationTime
protected GregorianCalendar calculateLockExpirationTime(int lockTimeInMillis, JobServiceConfiguration jobServiceConfiguration)
-
-