Package org.flowable.job.service.impl
Class ExternalWorkerJobFailureBuilderImpl
java.lang.Object
org.flowable.job.service.impl.ExternalWorkerJobFailureBuilderImpl
- All Implemented Interfaces:
ExternalWorkerJobFailureBuilder
public class ExternalWorkerJobFailureBuilderImpl
extends Object
implements ExternalWorkerJobFailureBuilder
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandExecutor
protected String
protected String
protected final String
protected final JobServiceConfiguration
protected int
protected Duration
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionExternalWorkerJobFailureBuilderImpl
(String externalJobId, String workerId, CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionerrorDetails
(String errorDetails) The longer error details for the failing job.errorMessage
(String errorMessage) The error message for the failing job.void
fail()
Perform the logic for failing a job.retries
(int retries) The number of new retries that should be set for the job.retryTimeout
(Duration retryTimeout) The amount of time to wait before making the job available for a retry.
-
Field Details
-
externalJobId
-
workerId
-
commandExecutor
-
jobServiceConfiguration
-
errorMessage
-
errorDetails
-
retries
protected int retries -
retryTimeout
-
-
Constructor Details
-
ExternalWorkerJobFailureBuilderImpl
public ExternalWorkerJobFailureBuilderImpl(String externalJobId, String workerId, CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Details
-
errorMessage
Description copied from interface:ExternalWorkerJobFailureBuilder
The error message for the failing job.- Specified by:
errorMessage
in interfaceExternalWorkerJobFailureBuilder
-
errorDetails
Description copied from interface:ExternalWorkerJobFailureBuilder
The longer error details for the failing job.- Specified by:
errorDetails
in interfaceExternalWorkerJobFailureBuilder
-
retries
Description copied from interface:ExternalWorkerJobFailureBuilder
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.- Specified by:
retries
in interfaceExternalWorkerJobFailureBuilder
-
retryTimeout
Description copied from interface:ExternalWorkerJobFailureBuilder
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.- Specified by:
retryTimeout
in interfaceExternalWorkerJobFailureBuilder
-
fail
public void fail()Description copied from interface:ExternalWorkerJobFailureBuilder
Perform the logic for failing a job.- Specified by:
fail
in interfaceExternalWorkerJobFailureBuilder
-