public class HandleExternalTaskFailureCmd extends HandleExternalTaskCmd
Modifier and Type | Field and Description |
---|---|
protected String |
errorDetails |
protected String |
errorMessage |
protected int |
retries |
protected long |
retryDuration |
workerId
externalTaskId
Constructor and Description |
---|
HandleExternalTaskFailureCmd(String externalTaskId,
String workerId,
String errorMessage,
int retries,
long retryDuration) |
HandleExternalTaskFailureCmd(String externalTaskId,
String workerId,
String errorMessage,
String errorDetails,
int retries,
long retryDuration)
Overloaded constructor to support short and full error messages
|
Modifier and Type | Method and Description |
---|---|
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.
|
execute
getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRetryable
protected String errorMessage
protected String errorDetails
protected long retryDuration
protected int retries
public HandleExternalTaskFailureCmd(String externalTaskId, String workerId, String errorMessage, int retries, long retryDuration)
public HandleExternalTaskFailureCmd(String externalTaskId, String workerId, String errorMessage, String errorDetails, int retries, long retryDuration)
externalTaskId
- workerId
- errorMessage
- errorDetails
- retries
- retryDuration
- public void execute(ExternalTaskEntity externalTask)
ExternalTaskCmd
execute
in class ExternalTaskCmd
externalTask
- the external task which is used for the command executionprotected void validateInput()
HandleExternalTaskCmd
validateInput
in class HandleExternalTaskCmd
public String getErrorMessageOnWrongWorkerAccess()
HandleExternalTaskCmd
getErrorMessageOnWrongWorkerAccess
in class HandleExternalTaskCmd
Copyright © 2022. All rights reserved.