public class AcquireExternalWorkerJobsCmd extends Object implements Command<List<AcquiredExternalWorkerJob>>
| Modifier and Type | Field and Description |
|---|---|
protected ExternalWorkerJobAcquireBuilderImpl |
builder |
protected JobServiceConfiguration |
jobServiceConfiguration |
protected int |
numberOfJobs |
protected String |
workerId |
| Constructor and Description |
|---|
AcquireExternalWorkerJobsCmd(String workerId,
int numberOfJobs,
ExternalWorkerJobAcquireBuilderImpl builder,
JobServiceConfiguration jobServiceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
List<AcquiredExternalWorkerJob> |
execute(CommandContext commandContext) |
protected void |
lockJob(CommandContext commandContext,
JobInfoEntity job,
int lockTimeInMillis) |
protected final String workerId
protected final int numberOfJobs
protected final ExternalWorkerJobAcquireBuilderImpl builder
protected final JobServiceConfiguration jobServiceConfiguration
public AcquireExternalWorkerJobsCmd(String workerId, int numberOfJobs, ExternalWorkerJobAcquireBuilderImpl builder, JobServiceConfiguration jobServiceConfiguration)
public List<AcquiredExternalWorkerJob> execute(CommandContext commandContext)
execute in interface Command<List<AcquiredExternalWorkerJob>>protected void lockJob(CommandContext commandContext, JobInfoEntity job, int lockTimeInMillis)
Copyright © 2021 Flowable. All rights reserved.