Class RateLimitBranchProperty

All Implemented Interfaces:
ExtensionPoint, Describable<BranchProperty>

@Deprecated public class RateLimitBranchProperty extends BranchProperty
Deprecated.
Suppressed by JobPropertyStep.HideSuperfluousBranchProperties for Pipeline.
A branch property that limits how often a specific branch can be built.
  • Constructor Details

    • RateLimitBranchProperty

      @Deprecated public RateLimitBranchProperty(int count, String durationName)
      Deprecated.
      Constructor for stapler.
      Parameters:
      count - the maximum builds within the duration.
      durationName - the name of the duration.
    • RateLimitBranchProperty

      @DataBoundConstructor public RateLimitBranchProperty(int count, String durationName, boolean userBoost)
      Deprecated.
      Constructor for stapler.
      Parameters:
      count - the maximum builds within the duration.
      durationName - the name of the duration.
      userBoost - true to allow user submitted jobs to ignore the rate limits.
  • Method Details

    • getCount

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

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

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

      public <P extends Job<P, B>, B extends Run<P, B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
      Deprecated.
      Returns a JobDecorator for the specific job type.
      Overrides:
      jobDecorator in class BranchProperty
      Type Parameters:
      P - the type of job.
      B - the type of run of the job.
      Parameters:
      jobType - the job class.
      Returns:
      a JobDecorator or null if none appropriate to this type of job.