Class AcquireExternalWorkerJobsCmd
java.lang.Object
org.flowable.job.service.impl.cmd.AcquireExternalWorkerJobsCmd
- All Implemented Interfaces:
Command<List<AcquiredExternalWorkerJob>>
public class AcquireExternalWorkerJobsCmd
extends Object
implements Command<List<AcquiredExternalWorkerJob>>
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExternalWorkerJobAcquireBuilderImplprotected final JobServiceConfigurationprotected final intprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAcquireExternalWorkerJobsCmd(String workerId, int numberOfJobs, ExternalWorkerJobAcquireBuilderImpl builder, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionexecute(CommandContext commandContext) protected voidlockJob(CommandContext commandContext, JobInfoEntity job, int lockTimeInMillis)
-
Field Details
-
workerId
-
numberOfJobs
protected final int numberOfJobs -
builder
-
jobServiceConfiguration
-
-
Constructor Details
-
AcquireExternalWorkerJobsCmd
public AcquireExternalWorkerJobsCmd(String workerId, int numberOfJobs, ExternalWorkerJobAcquireBuilderImpl builder, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Details
-
execute
- Specified by:
executein interfaceCommand<List<AcquiredExternalWorkerJob>>
-
lockJob
-