Package org.openapitools.client.model
Class LockExternalTaskDto
- java.lang.Object
-
- org.openapitools.client.model.LockExternalTaskDto
-
public class LockExternalTaskDto extends Object
LockExternalTaskDto
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_LOCK_DURATIONstatic StringSERIALIZED_NAME_WORKER_ID
-
Constructor Summary
Constructors Constructor Description LockExternalTaskDto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetLockDuration()The duration to lock the external task for in milliseconds.StringgetWorkerId()**Mandatory.** The ID of the worker who is performing the operation on the external task.inthashCode()LockExternalTaskDtolockDuration(Long lockDuration)voidsetLockDuration(Long lockDuration)voidsetWorkerId(String workerId)StringtoString()LockExternalTaskDtoworkerId(String workerId)
-
-
-
Field Detail
-
SERIALIZED_NAME_LOCK_DURATION
public static final String SERIALIZED_NAME_LOCK_DURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKER_ID
public static final String SERIALIZED_NAME_WORKER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
lockDuration
public LockExternalTaskDto lockDuration(Long lockDuration)
-
getLockDuration
public Long 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
public void setLockDuration(Long lockDuration)
-
workerId
public LockExternalTaskDto workerId(String workerId)
-
getWorkerId
public String 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
public void setWorkerId(String workerId)
-
-