Package org.flowable.job.api
Interface ExternalWorkerJobFailureBuilder
-
public interface ExternalWorkerJobFailureBuilder
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
errorMessage
ExternalWorkerJobFailureBuilder errorMessage(String errorMessage)
The error message for the failing job.
-
errorDetails
ExternalWorkerJobFailureBuilder errorDetails(String errorDetails)
The longer error details for the failing job.
-
retries
ExternalWorkerJobFailureBuilder retries(int retries)
The number of new retries that should be set for the job. If not set then the retries count would be decreased by 1. If the current retries is already 1, the job will be moved to the deadletter job table.
-
retryTimeout
ExternalWorkerJobFailureBuilder retryTimeout(Duration retryTimeout)
The amount of time to wait before making the job available for a retry. If nothing set then the job would immediately be available for a retry.
-
fail
void fail()
Perform the logic for failing a job.
-
-