public class LockExternalTaskCmd extends HandleExternalTaskCmd
Modifier and Type | Field and Description |
---|---|
protected long |
lockDuration |
workerId
externalTaskId
Constructor and Description |
---|
LockExternalTaskCmd(String externalTaskId,
String workerId,
long lockDuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(ExternalTaskEntity externalTask)
Executes the specific external task commands, which belongs to the current sub class.
|
String |
getErrorMessageOnWrongWorkerAccess()
Returns the error message.
|
protected void |
validateInput()
Validates the current input of the command.
|
protected boolean |
validateWorkerViolation(ExternalTaskEntity externalTask)
Validates the caller's workerId against the workerId of the external task.
|
execute
getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRetryable
protected void execute(ExternalTaskEntity externalTask)
ExternalTaskCmd
execute
in class ExternalTaskCmd
externalTask
- the external task which is used for the command executionpublic String getErrorMessageOnWrongWorkerAccess()
HandleExternalTaskCmd
getErrorMessageOnWrongWorkerAccess
in class HandleExternalTaskCmd
protected boolean validateWorkerViolation(ExternalTaskEntity externalTask)
HandleExternalTaskCmd
validateWorkerViolation
in class HandleExternalTaskCmd
protected void validateInput()
HandleExternalTaskCmd
validateInput
in class HandleExternalTaskCmd
Copyright © 2022. All rights reserved.