Interface ExternalTaskQueryBuilder

    • Method Detail

      • topic

        ExternalTaskQueryTopicBuilder topic​(java.lang.String topicName,
                                            long lockDuration)
        Specifies that tasks of a topic should be fetched and locked for a certain amount of time
        topicName - the name of the topic
        lockDuration - the duration in milliseconds for which tasks should be locked; begins at the time of fetching
      • execute

        java.util.List<LockedExternalTask> execute()
        Performs the fetching. Locks candidate tasks of the given topics for the specified duration.
        fetched external tasks that match the topic and that can be successfully locked