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 ExternalWorkerJobAcquireBuilderImpl
protected final JobServiceConfiguration
protected final int
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionAcquireExternalWorkerJobsCmd
(String workerId, int numberOfJobs, ExternalWorkerJobAcquireBuilderImpl builder, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandContext commandContext) protected void
lockJob
(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:
execute
in interfaceCommand<List<AcquiredExternalWorkerJob>>
-
lockJob
-