Interface FailJobCommandStep1.FailJobCommandStep2
- All Superinterfaces:
FinalCommandStep<FailJobResponse>
- All Known Implementing Classes:
FailJobCommandImpl
- Enclosing interface:
- FailJobCommandStep1
public static interface FailJobCommandStep1.FailJobCommandStep2
extends FinalCommandStep<FailJobResponse>
-
Method Summary
Modifier and TypeMethodDescriptionerrorMessage
(String errorMsg) Provide an error message describing the reason for the job failure.retryBackoff
(Duration backoffTimeout) Set the backoff timeout for failing this job.Set a single variable of this job.variables
(InputStream variables) Set the variables of this job.Set the variables of this job.Set the variables of this job.Set the variables of this job.Methods inherited from interface io.camunda.zeebe.client.api.command.FinalCommandStep
requestTimeout, send
-
Method Details
-
retryBackoff
Set the backoff timeout for failing this job.If the backoff timeout is greater than zero and retries are greater than zero then this job will be picked up again after the given backoff timeout is expired.
- Parameters:
backoffTimeout
- the backoff timeout of this job- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send * it to the broker.
-
errorMessage
Provide an error message describing the reason for the job failure. If failing the job creates an incident, this error message will be used as incident message.- Parameters:
errorMsg
- error message to be attached to the failed job- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
Set the variables of this job.- Parameters:
variables
- the variables (JSON) as stream- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
Set the variables of this job.- Parameters:
variables
- the variables (JSON) as String- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
Set the variables of this job.- Parameters:
variables
- the variables as map- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
Set the variables of this job.- Parameters:
variables
- the variables as object- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variable
Set a single variable of this job.- Parameters:
key
- the key of the variable as stringvalue
- the value of the variable as object- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-