Class RateLimitBranchProperty.Throttle

java.lang.Object
jenkins.branch.RateLimitBranchProperty.Throttle
Enclosing class:
RateLimitBranchProperty

public static class RateLimitBranchProperty.Throttle extends Object
This class is to work around some annoying "features" of f:optionalBlock
  • Constructor Details

    • Throttle

      @DataBoundConstructor public Throttle(int count, String durationName, boolean userBoost)
      Constructor for stapler.
      Parameters:
      count - the maximum builds within the duration.
      durationName - the name of the duration.
      userBoost - if true then user submitted builds will skip the queue.
  • Method Details

    • getCount

      public int getCount()
      Gets the maximum builds within the duration.
      Returns:
      the maximum builds within the duration.
    • getDurationName

      public String getDurationName()
      Gets the duration.
      Returns:
      the duration.
    • isUserBoost

      public boolean isUserBoost()
      Gets the user boost setting.
      Returns:
      the user boost setting.