Interface FailJobCommandStep1.FailJobCommandStep2

All Superinterfaces:
FinalCommandStep<FailJobResponse>
All Known Implementing Classes:
FailJobCommandImpl
Enclosing interface:
FailJobCommandStep1

public static interface FailJobCommandStep1.FailJobCommandStep2 extends FinalCommandStep<FailJobResponse>
  • Method Details

    • retryBackoff

      FailJobCommandStep1.FailJobCommandStep2 retryBackoff(Duration backoffTimeout)
      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.