Interface JobStateTimeLimitAction.Builder

  • Method Details

    • reason

      The reason to log for the action being taken.

      Parameters:
      reason - The reason to log for the action being taken.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of the job needed to trigger the action. The only supported value is RUNNABLE.

      Parameters:
      state - The state of the job needed to trigger the action. The only supported value is RUNNABLE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the job needed to trigger the action. The only supported value is RUNNABLE.

      Parameters:
      state - The state of the job needed to trigger the action. The only supported value is RUNNABLE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxTimeSeconds

      JobStateTimeLimitAction.Builder maxTimeSeconds(Integer maxTimeSeconds)

      The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).

      Parameters:
      maxTimeSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL, which will cancel the job.

      Parameters:
      action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL, which will cancel the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • action

      The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL, which will cancel the job.

      Parameters:
      action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is CANCEL, which will cancel the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: