Class FetchExternalTasksDto
java.lang.Object
org.camunda.community.rest.client.dto.FetchExternalTasksDto
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-04T13:43:01.451833574Z[Etc/UTC]")
public class FetchExternalTasksDto
extends Object
FetchExternalTasksDto
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSortingItem(FetchExternalTasksDtoSortingInner sortingItem) addTopicsItem(FetchExternalTaskTopicDto topicsItem) asyncResponseTimeout(Long asyncResponseTimeout) booleanThe [Long Polling](https://docs.camunda.org/manual/7.21/user-guide/process-engine/external-tasks/#long-polling-to-fetch-and-lock-external-tasks) timeout in milliseconds.org.openapitools.jackson.nullable.JsonNullable<Long>**Mandatory.** The maximum number of tasks to return.Apply sorting of the resultorg.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTasksDtoSortingInner>>A JSON array of topic objects for which external tasks should be fetched.org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTaskTopicDto>>A `boolean` value, which indicates whether the task should be fetched based on its priority or arbitrarily.org.openapitools.jackson.nullable.JsonNullable<Boolean>**Mandatory.** The id of the worker on which behalf tasks are fetched.inthashCode()voidsetAsyncResponseTimeout(Long asyncResponseTimeout) voidsetAsyncResponseTimeout_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> asyncResponseTimeout) voidsetMaxTasks(Integer maxTasks) voidsetSorting(List<FetchExternalTasksDtoSortingInner> sorting) voidsetSorting_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTasksDtoSortingInner>> sorting) voidsetTopics(List<FetchExternalTaskTopicDto> topics) voidsetTopics_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTaskTopicDto>> topics) voidsetUsePriority(Boolean usePriority) voidsetUsePriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Boolean> usePriority) voidsetWorkerId(String workerId) sorting(List<FetchExternalTasksDtoSortingInner> sorting) topics(List<FetchExternalTaskTopicDto> topics) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.usePriority(Boolean usePriority)
-
Field Details
-
JSON_PROPERTY_WORKER_ID
- See Also:
-
JSON_PROPERTY_MAX_TASKS
- See Also:
-
JSON_PROPERTY_USE_PRIORITY
- See Also:
-
JSON_PROPERTY_ASYNC_RESPONSE_TIMEOUT
- See Also:
-
JSON_PROPERTY_TOPICS
- See Also:
-
JSON_PROPERTY_SORTING
- See Also:
-
-
Constructor Details
-
FetchExternalTasksDto
public FetchExternalTasksDto()
-
-
Method Details
-
workerId
-
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
-
maxTasks
-
getMaxTasks
**Mandatory.** The maximum number of tasks to return.- Returns:
- maxTasks
-
setMaxTasks
-
usePriority
-
getUsePriority
A `boolean` value, which indicates whether the task should be fetched based on its priority or arbitrarily.- Returns:
- usePriority
-
getUsePriority_JsonNullable
-
setUsePriority_JsonNullable
public void setUsePriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Boolean> usePriority) -
setUsePriority
-
asyncResponseTimeout
-
getAsyncResponseTimeout
The [Long Polling](https://docs.camunda.org/manual/7.21/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
-
getAsyncResponseTimeout_JsonNullable
-
setAsyncResponseTimeout_JsonNullable
public void setAsyncResponseTimeout_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> asyncResponseTimeout) -
setAsyncResponseTimeout
-
topics
-
addTopicsItem
-
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
-
getTopics_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTaskTopicDto>> getTopics_JsonNullable() -
setTopics_JsonNullable
public void setTopics_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTaskTopicDto>> topics) -
setTopics
-
sorting
-
addSortingItem
-
getSorting
Apply sorting of the result- Returns:
- sorting
-
getSorting_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTasksDtoSortingInner>> getSorting_JsonNullable() -
setSorting_JsonNullable
public void setSorting_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<FetchExternalTasksDtoSortingInner>> sorting) -
setSorting
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-