Interface UpdateJobCommandStep1

All Known Implementing Classes:
JobUpdateCommandImpl

public interface UpdateJobCommandStep1
  • Method Details

    • update

      Update the retries and/or the timeout of this job.

      If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.

      Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.

      Parameters:
      jobChangeset - the changeset of this job, if a field is not provided (equals to null) it will be not updated
      Returns:
      the builder for this command. Call
      invalid reference
      #send()
      to complete the command and send it to the broker.
    • update

      Update the retries and/or the timeout of this job.

      If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.

      Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.

      Parameters:
      retries - retries the retries of this job, if null it won't be updated
      timeout - the time the timeout of this job, if null it won't be updated
      Returns:
      the builder for this command. Call
      invalid reference
      #send()
      to complete the command and send it to the broker.
    • updateRetries

      UpdateJobCommandStep1.UpdateJobCommandStep2 updateRetries(int retries)
      Set the retries of this job.

      If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.

      Parameters:
      retries - the retries of this job
      Returns:
      the builder for this command. Call
      invalid reference
      #send()
      to complete the command and send it to the broker.
    • updateTimeout

      UpdateJobCommandStep1.UpdateJobCommandStep2 updateTimeout(long timeout)
      Set the timeout of this job.

      Timeout value in millis is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.

      Parameters:
      timeout - the timeout of this job
      Returns:
      the builder for this command. Call
      invalid reference
      #send()
      to complete the command and send it to the broker.
    • updateTimeout

      Set the timeout of this job.

      Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.

      Parameters:
      timeout - the time as duration (e.g. "Duration.ofMinutes(5)")
      Returns:
      the builder for this command. Call
      invalid reference
      #send()
      to complete the command and send it to the broker.