public class ExternalWorkerJobFailureBuilderImpl extends Object implements ExternalWorkerJobFailureBuilder
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected String |
errorDetails |
protected String |
errorMessage |
protected String |
externalJobId |
protected JobServiceConfiguration |
jobServiceConfiguration |
protected int |
retries |
protected Duration |
retryTimeout |
protected String |
workerId |
| Constructor and Description |
|---|
ExternalWorkerJobFailureBuilderImpl(String externalJobId,
String workerId,
CommandExecutor commandExecutor,
JobServiceConfiguration jobServiceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
ExternalWorkerJobFailureBuilder |
errorDetails(String errorDetails)
The longer error details for the failing job.
|
ExternalWorkerJobFailureBuilder |
errorMessage(String errorMessage)
The error message for the failing job.
|
void |
fail()
Perform the logic for failing a job.
|
ExternalWorkerJobFailureBuilder |
retries(int retries)
The number of new retries that should be set for the job.
|
ExternalWorkerJobFailureBuilder |
retryTimeout(Duration retryTimeout)
The amount of time to wait before making the job available for a retry.
|
protected final String externalJobId
protected final String workerId
protected final CommandExecutor commandExecutor
protected final JobServiceConfiguration jobServiceConfiguration
protected String errorMessage
protected String errorDetails
protected int retries
protected Duration retryTimeout
public ExternalWorkerJobFailureBuilderImpl(String externalJobId, String workerId, CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
public ExternalWorkerJobFailureBuilder errorMessage(String errorMessage)
ExternalWorkerJobFailureBuildererrorMessage in interface ExternalWorkerJobFailureBuilderpublic ExternalWorkerJobFailureBuilder errorDetails(String errorDetails)
ExternalWorkerJobFailureBuildererrorDetails in interface ExternalWorkerJobFailureBuilderpublic ExternalWorkerJobFailureBuilder retries(int retries)
ExternalWorkerJobFailureBuilderretries in interface ExternalWorkerJobFailureBuilderpublic ExternalWorkerJobFailureBuilder retryTimeout(Duration retryTimeout)
ExternalWorkerJobFailureBuilderretryTimeout in interface ExternalWorkerJobFailureBuilderpublic void fail()
ExternalWorkerJobFailureBuilderfail in interface ExternalWorkerJobFailureBuilderCopyright © 2023 Flowable. All rights reserved.