Class LockExternalTaskDto
java.lang.Object
org.camunda.community.rest.client.dto.LockExternalTaskDto
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-04T13:43:01.451833574Z[Etc/UTC]")
public class LockExternalTaskDto
extends Object
LockExternalTaskDto
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe duration to lock the external task for in milliseconds.**Mandatory.** The ID of the worker who is performing the operation on the external task.inthashCode()lockDuration(Long lockDuration) voidsetLockDuration(Long lockDuration) voidsetWorkerId(String workerId) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_WORKER_ID
- See Also:
-
JSON_PROPERTY_LOCK_DURATION
- See Also:
-
-
Constructor Details
-
LockExternalTaskDto
public LockExternalTaskDto()
-
-
Method Details
-
workerId
-
getWorkerId
**Mandatory.** The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task.- Returns:
- workerId
-
setWorkerId
-
lockDuration
-
getLockDuration
The duration to lock the external task for in milliseconds. **Note:** Attempting to lock an already locked external task with the same `workerId` will succeed and a new lock duration will be set, starting from the current moment.- Returns:
- lockDuration
-
setLockDuration
-
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
-