Interface JobStateTimeLimitAction.Builder

    • Method Detail

      • reason

        JobStateTimeLimitAction.Builder reason​(String 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.
      • 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

        JobStateTimeLimitAction.Builder action​(String 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:
        JobStateTimeLimitActionsAction, JobStateTimeLimitActionsAction
      • action

        JobStateTimeLimitAction.Builder action​(JobStateTimeLimitActionsAction 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:
        JobStateTimeLimitActionsAction, JobStateTimeLimitActionsAction