Class BaseExternalWorkerJobAcquireBuilder
java.lang.Object
org.flowable.external.client.impl.BaseExternalWorkerJobAcquireBuilder
- All Implemented Interfaces:
ExternalWorkerJobAcquireBuilder
- Direct Known Subclasses:
RestExternalWorkerJobAcquireBuilder
public abstract class BaseExternalWorkerJobAcquireBuilder
extends Object
implements ExternalWorkerJobAcquireBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<AcquiredExternalWorkerJob>Acquire and lock the configured amount of jobs.protected abstract List<AcquiredExternalWorkerJob>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
-
Field Details
-
topic
-
lockDuration
-
scopeType
-
numberOfTasks
protected int numberOfTasks -
numberOfRetries
protected int numberOfRetries
-
-
Constructor Details
-
BaseExternalWorkerJobAcquireBuilder
public BaseExternalWorkerJobAcquireBuilder()
-
-
Method Details
-
topic
Description copied from interface:ExternalWorkerJobAcquireBuilderThe topic for the requested jobs- Specified by:
topicin interfaceExternalWorkerJobAcquireBuilder- Parameters:
topic- the topic of the jobs
-
lockDuration
Description copied from interface:ExternalWorkerJobAcquireBuilderHow long should the acquired jobs be locked for.- Specified by:
lockDurationin interfaceExternalWorkerJobAcquireBuilder- Parameters:
lockDuration- the duration for locking the jobs
-
onlyBpmn
Description copied from interface:ExternalWorkerJobAcquireBuilderAcquire only jobs which are linked to a process instance. Cannot be combined withExternalWorkerJobAcquireBuilder.onlyCmmn()andExternalWorkerJobAcquireBuilder.scopeType(String)- Specified by:
onlyBpmnin interfaceExternalWorkerJobAcquireBuilder
-
onlyCmmn
Description copied from interface:ExternalWorkerJobAcquireBuilderAcquire only jobs which are linked to a case instance. Cannot be combined withExternalWorkerJobAcquireBuilder.onlyBpmn()andExternalWorkerJobAcquireBuilder.scopeType(String)- Specified by:
onlyCmmnin interfaceExternalWorkerJobAcquireBuilder
-
scopeType
Description copied from interface:ExternalWorkerJobAcquireBuilderAcquire only jobs which are linked to the given scope type. Cannot be combined withExternalWorkerJobAcquireBuilder.onlyBpmn()orExternalWorkerJobAcquireBuilder.onlyCmmn()- Specified by:
scopeTypein interfaceExternalWorkerJobAcquireBuilder
-
numberOfTasks
Description copied from interface:ExternalWorkerJobAcquireBuilderThe number of tasks that should be acquired.- Specified by:
numberOfTasksin interfaceExternalWorkerJobAcquireBuilder
-
numberOfRetries
Description copied from interface:ExternalWorkerJobAcquireBuilderThe number of retries in case an optimistic lock exception occurs during acquiring.- Specified by:
numberOfRetriesin interfaceExternalWorkerJobAcquireBuilder
-
acquireAndLock
Description copied from interface:ExternalWorkerJobAcquireBuilderAcquire and lock the configured amount of jobs.- Specified by:
acquireAndLockin interfaceExternalWorkerJobAcquireBuilder
-
acquireAndLockInternal
-