Package org.flowable.external.client
Interface ExternalWorkerJobAcquireBuilder
- All Known Implementing Classes:
BaseExternalWorkerJobAcquireBuilder,RestExternalWorkerJobAcquireBuilder
public interface ExternalWorkerJobAcquireBuilder
A builder providing configuration options for acquiring external worker jobs.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionAcquire and lock the configured amount of jobs.lockDuration(Duration lockDuration) How long should the acquired jobs be locked for.numberOfRetries(int numberOfRetries) The number of retries in case an optimistic lock exception occurs during acquiring.numberOfTasks(int numberOfTasks) The number of tasks that should be acquired.onlyBpmn()Acquire only jobs which are linked to a process instance.onlyCmmn()Acquire only jobs which are linked to a case instance.Acquire only jobs which are linked to the given scope type.The topic for the requested jobs
-
Method Details
-
topic
The topic for the requested jobs- Parameters:
topic- the topic of the jobs
-
lockDuration
How long should the acquired jobs be locked for.- Parameters:
lockDuration- the duration for locking the jobs
-
onlyBpmn
ExternalWorkerJobAcquireBuilder onlyBpmn()Acquire only jobs which are linked to a process instance. Cannot be combined withonlyCmmn()andscopeType(String) -
onlyCmmn
ExternalWorkerJobAcquireBuilder onlyCmmn()Acquire only jobs which are linked to a case instance. Cannot be combined withonlyBpmn()andscopeType(String) -
scopeType
Acquire only jobs which are linked to the given scope type. Cannot be combined withonlyBpmn()oronlyCmmn() -
numberOfTasks
The number of tasks that should be acquired. -
numberOfRetries
The number of retries in case an optimistic lock exception occurs during acquiring. -
acquireAndLock
List<AcquiredExternalWorkerJob> acquireAndLock()Acquire and lock the configured amount of jobs.
-