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
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected StringerrorDetailsprotected StringerrorMessageprotected StringexternalJobIdprotected JobServiceConfigurationjobServiceConfigurationprotected intretriesprotected DurationretryTimeoutprotected StringworkerId
-
Constructor Summary
Constructors Constructor Description ExternalWorkerJobFailureBuilderImpl(String externalJobId, String workerId, CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalWorkerJobFailureBuildererrorDetails(String errorDetails)ExternalWorkerJobFailureBuildererrorMessage(String errorMessage)voidfail()ExternalWorkerJobFailureBuilderretries(int retries)ExternalWorkerJobFailureBuilderretryTimeout(Duration retryTimeout)
-
-
-
Field Detail
-
externalJobId
protected final String externalJobId
-
workerId
protected final String workerId
-
commandExecutor
protected final CommandExecutor commandExecutor
-
jobServiceConfiguration
protected final JobServiceConfiguration jobServiceConfiguration
-
errorMessage
protected String errorMessage
-
errorDetails
protected String errorDetails
-
retries
protected int retries
-
retryTimeout
protected Duration retryTimeout
-
-
Constructor Detail
-
ExternalWorkerJobFailureBuilderImpl
public ExternalWorkerJobFailureBuilderImpl(String externalJobId, String workerId, CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Detail
-
errorMessage
public ExternalWorkerJobFailureBuilder errorMessage(String errorMessage)
- Specified by:
errorMessagein interfaceExternalWorkerJobFailureBuilder
-
errorDetails
public ExternalWorkerJobFailureBuilder errorDetails(String errorDetails)
- Specified by:
errorDetailsin interfaceExternalWorkerJobFailureBuilder
-
retries
public ExternalWorkerJobFailureBuilder retries(int retries)
- Specified by:
retriesin interfaceExternalWorkerJobFailureBuilder
-
retryTimeout
public ExternalWorkerJobFailureBuilder retryTimeout(Duration retryTimeout)
- Specified by:
retryTimeoutin interfaceExternalWorkerJobFailureBuilder
-
fail
public void fail()
- Specified by:
failin interfaceExternalWorkerJobFailureBuilder
-
-