public class LockExternalTaskCmd extends HandleExternalTaskCmd
| Modifier and Type | Field and Description |
|---|---|
protected long |
lockDuration |
workerIdexternalTaskId| 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.
|
executegetUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRetryableprotected void execute(ExternalTaskEntity externalTask)
ExternalTaskCmdexecute in class ExternalTaskCmdexternalTask - the external task which is used for the command executionpublic String getErrorMessageOnWrongWorkerAccess()
HandleExternalTaskCmdgetErrorMessageOnWrongWorkerAccess in class HandleExternalTaskCmdprotected boolean validateWorkerViolation(ExternalTaskEntity externalTask)
HandleExternalTaskCmdvalidateWorkerViolation in class HandleExternalTaskCmdprotected void validateInput()
HandleExternalTaskCmdvalidateInput in class HandleExternalTaskCmdCopyright © 2022. All rights reserved.