Interface ExternalTaskQueryBuilder
-
- All Known Subinterfaces:
ExternalTaskQueryTopicBuilder
- All Known Implementing Classes:
ExternalTaskQueryTopicBuilderImpl
public interface ExternalTaskQueryBuilder
- Author:
- Thorben Lindhauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<LockedExternalTask>
execute()
Performs the fetching.ExternalTaskQueryTopicBuilder
topic(String topicName, long lockDuration)
Specifies that tasks of a topic should be fetched and locked for a certain amount of time
-
-
-
Method Detail
-
topic
ExternalTaskQueryTopicBuilder topic(String topicName, long lockDuration)
Specifies that tasks of a topic should be fetched and locked for a certain amount of time- Parameters:
topicName
- the name of the topiclockDuration
- the duration in milliseconds for which tasks should be locked; begins at the time of fetching- Returns:
-
execute
List<LockedExternalTask> execute()
Performs the fetching. Locks candidate tasks of the given topics for the specified duration.- Returns:
- fetched external tasks that match the topic and that can be successfully locked
-
-