Package org.openapitools.client.model
Class FetchExternalTasksDto
- java.lang.Object
-
- org.openapitools.client.model.FetchExternalTasksDto
-
public class FetchExternalTasksDto extends Object
FetchExternalTasksDto
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ASYNC_RESPONSE_TIMEOUTstatic StringSERIALIZED_NAME_MAX_TASKSstatic StringSERIALIZED_NAME_TOPICSstatic StringSERIALIZED_NAME_USE_PRIORITYstatic StringSERIALIZED_NAME_WORKER_ID
-
Constructor Summary
Constructors Constructor Description FetchExternalTasksDto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchExternalTasksDtoaddTopicsItem(FetchExternalTaskTopicDto topicsItem)FetchExternalTasksDtoasyncResponseTimeout(Long asyncResponseTimeout)booleanequals(Object o)LonggetAsyncResponseTimeout()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.IntegergetMaxTasks()**Mandatory.** The maximum number of tasks to return.List<FetchExternalTaskTopicDto>getTopics()A JSON array of topic objects for which external tasks should be fetched.BooleangetUsePriority()A `boolean` value, which indicates whether the task should be fetched based on its priority or arbitrarily.StringgetWorkerId()**Mandatory.** The id of the worker on which behalf tasks are fetched.inthashCode()FetchExternalTasksDtomaxTasks(Integer maxTasks)voidsetAsyncResponseTimeout(Long asyncResponseTimeout)voidsetMaxTasks(Integer maxTasks)voidsetTopics(List<FetchExternalTaskTopicDto> topics)voidsetUsePriority(Boolean usePriority)voidsetWorkerId(String workerId)FetchExternalTasksDtotopics(List<FetchExternalTaskTopicDto> topics)StringtoString()FetchExternalTasksDtousePriority(Boolean usePriority)FetchExternalTasksDtoworkerId(String workerId)
-
-
-
Field Detail
-
SERIALIZED_NAME_WORKER_ID
public static final String SERIALIZED_NAME_WORKER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_TASKS
public static final String SERIALIZED_NAME_MAX_TASKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USE_PRIORITY
public static final String SERIALIZED_NAME_USE_PRIORITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ASYNC_RESPONSE_TIMEOUT
public static final String SERIALIZED_NAME_ASYNC_RESPONSE_TIMEOUT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPICS
public static final String SERIALIZED_NAME_TOPICS
- See Also:
- Constant Field Values
-
-
Method Detail
-
workerId
public FetchExternalTasksDto workerId(String workerId)
-
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)
-
maxTasks
public FetchExternalTasksDto maxTasks(Integer maxTasks)
-
getMaxTasks
public Integer getMaxTasks()
**Mandatory.** The maximum number of tasks to return.- Returns:
- maxTasks
-
setMaxTasks
public void setMaxTasks(Integer maxTasks)
-
usePriority
public FetchExternalTasksDto usePriority(Boolean usePriority)
-
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)
-
asyncResponseTimeout
public FetchExternalTasksDto asyncResponseTimeout(Long asyncResponseTimeout)
-
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)
-
topics
public FetchExternalTasksDto topics(List<FetchExternalTaskTopicDto> topics)
-
addTopicsItem
public FetchExternalTasksDto addTopicsItem(FetchExternalTaskTopicDto topicsItem)
-
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
-
setTopics
public void setTopics(List<FetchExternalTaskTopicDto> topics)
-
-