Class LockExternalTaskDto


  • public class LockExternalTaskDto
    extends Object
    LockExternalTaskDto
    • Constructor Detail

      • LockExternalTaskDto

        public LockExternalTaskDto()
    • Method Detail

      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object