Class RateLimitBranchProperty

    • Constructor Detail

      • 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)
        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 Detail

      • 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.
      • jobDecorator

        public <P extends Job<P,​B>,​B extends Run<P,​B>> JobDecorator<P,​B> jobDecorator​(Class<P> jobType)
        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.