Class FetchExternalTasksDto


  • public class FetchExternalTasksDto
    extends Object
    FetchExternalTasksDto
    • Constructor Detail

      • FetchExternalTasksDto

        public FetchExternalTasksDto()
    • Method Detail

      • getWorkerId

        public String getWorkerId()
        **Mandatory.** The id of the worker on which behalf tasks are fetched. The returned tasks are locked for that worker and can only be completed when providing the same worker id.
        Returns:
        workerId
      • setWorkerId

        public void setWorkerId​(String workerId)
      • getMaxTasks

        public Integer getMaxTasks()
        **Mandatory.** The maximum number of tasks to return.
        Returns:
        maxTasks
      • setMaxTasks

        public void setMaxTasks​(Integer maxTasks)
      • getUsePriority

        public Boolean getUsePriority()
        A `boolean` value, which indicates whether the task should be fetched based on its priority or arbitrarily.
        Returns:
        usePriority
      • setUsePriority

        public void setUsePriority​(Boolean usePriority)
      • getAsyncResponseTimeout

        public Long getAsyncResponseTimeout()
        The [Long Polling](https://docs.camunda.org/manual/7.18/user-guide/process-engine/external-tasks/#long-polling-to-fetch-and-lock-external-tasks) timeout in milliseconds. **Note:** The value cannot be set larger than 1.800.000 milliseconds (corresponds to 30 minutes).
        Returns:
        asyncResponseTimeout
      • setAsyncResponseTimeout

        public void setAsyncResponseTimeout​(Long asyncResponseTimeout)
      • getTopics

        public List<FetchExternalTaskTopicDto> getTopics()
        A JSON array of topic objects for which external tasks should be fetched. The returned tasks may be arbitrarily distributed among these topics. Each topic object has the following properties:
        Returns:
        topics
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object