Class FetchAndLockBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.externaltask.FetchAndLockBuilderImpl
- All Implemented Interfaces:
FetchAndLockBuilder
Implementation of
FetchAndLockBuilder.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandExecutorprotected intprotected List<QueryOrderingProperty>protected booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasc()Configures the order to be ascending.protected voidprotected voidconfigureLastOrderingPropertyDirection(Direction direction) desc()Configures the order to be descending.maxTasks(int maxTasks) Configures the max tasks fetching that will be used during the Fetch and Lock operation.Configures the fetching during the Fetch and Lock Operation to include ordering by create time of the external tasks.Returns theExternalTaskQueryTopicBuilderto handle all the configuration that applies per topic.usePriority(boolean usePriority) Configures fetching to consider (or not) priority during the Fetch and Lock operation.Configures the workerId that will be used during the Fetch and Lock operation.
-
Field Details
-
commandExecutor
-
workerId
-
maxTasks
protected int maxTasks -
usePriority
protected boolean usePriority -
orderingProperties
-
-
Constructor Details
-
FetchAndLockBuilderImpl
-
-
Method Details
-
workerId
Description copied from interface:FetchAndLockBuilderConfigures the workerId that will be used during the Fetch and Lock operation.- Specified by:
workerIdin interfaceFetchAndLockBuilder- Parameters:
workerId- the given workerId- Returns:
- the builder
-
maxTasks
Description copied from interface:FetchAndLockBuilderConfigures the max tasks fetching that will be used during the Fetch and Lock operation.- Specified by:
maxTasksin interfaceFetchAndLockBuilder- Parameters:
maxTasks- the given number of max tasks- Returns:
- the builder
-
usePriority
Description copied from interface:FetchAndLockBuilderConfigures fetching to consider (or not) priority during the Fetch and Lock operation.- Specified by:
usePriorityin interfaceFetchAndLockBuilder- Parameters:
usePriority- the given usePriority flag. If true, tasks will be fetched in descending order.- Returns:
- the builder
-
orderByCreateTime
Description copied from interface:FetchAndLockBuilderConfigures the fetching during the Fetch and Lock Operation to include ordering by create time of the external tasks. This method can be combined by calling asc() or desc() afterwards to define an ascending or descending order respectively.- Specified by:
orderByCreateTimein interfaceFetchAndLockBuilder- Returns:
- the builder
-
asc
Description copied from interface:FetchAndLockBuilderConfigures the order to be ascending.- Specified by:
ascin interfaceFetchAndLockBuilder- Returns:
- the builder
- Throws:
NotValidException
-
desc
Description copied from interface:FetchAndLockBuilderConfigures the order to be descending.- Specified by:
descin interfaceFetchAndLockBuilder- Returns:
- the builder
- Throws:
NotValidException
-
subscribe
Description copied from interface:FetchAndLockBuilderReturns theExternalTaskQueryTopicBuilderto handle all the configuration that applies per topic.- Specified by:
subscribein interfaceFetchAndLockBuilder- Returns:
- the builder
-
configureLastOrderingPropertyDirection
-
checkQueryOk
protected void checkQueryOk()
-