Class JobFailRequest

java.lang.Object
io.camunda.client.protocol.rest.JobFailRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class JobFailRequest extends Object
JobFailRequest
  • Field Details

  • Constructor Details

    • JobFailRequest

      public JobFailRequest()
  • Method Details

    • retries

      public JobFailRequest retries(@Nullable Integer retries)
    • getRetries

      @Nullable public Integer getRetries()
      The amount of retries the job should have left
      Returns:
      retries
    • setRetries

      public void setRetries(@Nullable Integer retries)
    • errorMessage

      public JobFailRequest errorMessage(@Nullable String errorMessage)
    • getErrorMessage

      @Nullable public String getErrorMessage()
      An optional error message describing why the job failed; if not provided, an empty string is used.
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(@Nullable String errorMessage)
    • retryBackOff

      public JobFailRequest retryBackOff(@Nullable Long retryBackOff)
    • getRetryBackOff

      @Nullable public Long getRetryBackOff()
      An optional retry back off for the failed job. The job will not be retryable before the current time plus the back off time. The default is 0 which means the job is retryable immediately.
      Returns:
      retryBackOff
    • setRetryBackOff

      public void setRetryBackOff(@Nullable Long retryBackOff)
    • variables

      public JobFailRequest variables(@Nullable Map<String,Object> variables)
    • putVariablesItem

      public JobFailRequest putVariablesItem(String key, Object variablesItem)
    • getVariables

      @Nullable public Map<String,Object> getVariables()
      JSON object that will instantiate the variables at the local scope of the job's associated task.
      Returns:
      variables
    • setVariables

      public void setVariables(@Nullable Map<String,Object> variables)
    • leaseToken

      public JobFailRequest leaseToken(@Nullable String leaseToken)
    • getLeaseToken

      @Nullable public String getLeaseToken()
      The token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token.
      Returns:
      leaseToken
    • setLeaseToken

      public void setLeaseToken(@Nullable String leaseToken)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object