Class FetchAndLockBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.externaltask.FetchAndLockBuilderImpl
- All Implemented Interfaces:
FetchAndLockBuilder
Implementation of
FetchAndLockBuilder
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected int
protected List<QueryOrderingProperty>
protected boolean
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasc()
Configures the order to be ascending.protected void
protected void
configureLastOrderingPropertyDirection
(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 theExternalTaskQueryTopicBuilder
to 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:FetchAndLockBuilder
Configures the workerId that will be used during the Fetch and Lock operation.- Specified by:
workerId
in interfaceFetchAndLockBuilder
- Parameters:
workerId
- the given workerId- Returns:
- the builder
-
maxTasks
Description copied from interface:FetchAndLockBuilder
Configures the max tasks fetching that will be used during the Fetch and Lock operation.- Specified by:
maxTasks
in interfaceFetchAndLockBuilder
- Parameters:
maxTasks
- the given number of max tasks- Returns:
- the builder
-
usePriority
Description copied from interface:FetchAndLockBuilder
Configures fetching to consider (or not) priority during the Fetch and Lock operation.- Specified by:
usePriority
in interfaceFetchAndLockBuilder
- Parameters:
usePriority
- the given usePriority flag. If true, tasks will be fetched in descending order.- Returns:
- the builder
-
orderByCreateTime
Description copied from interface:FetchAndLockBuilder
Configures 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:
orderByCreateTime
in interfaceFetchAndLockBuilder
- Returns:
- the builder
-
asc
Description copied from interface:FetchAndLockBuilder
Configures the order to be ascending.- Specified by:
asc
in interfaceFetchAndLockBuilder
- Returns:
- the builder
- Throws:
NotValidException
-
desc
Description copied from interface:FetchAndLockBuilder
Configures the order to be descending.- Specified by:
desc
in interfaceFetchAndLockBuilder
- Returns:
- the builder
- Throws:
NotValidException
-
subscribe
Description copied from interface:FetchAndLockBuilder
Returns theExternalTaskQueryTopicBuilder
to handle all the configuration that applies per topic.- Specified by:
subscribe
in interfaceFetchAndLockBuilder
- Returns:
- the builder
-
configureLastOrderingPropertyDirection
-
checkQueryOk
protected void checkQueryOk()
-