public class RateLimitBranchProperty extends BranchProperty
| Modifier and Type | Class and Description |
|---|---|
static class |
RateLimitBranchProperty.DescriptorImpl
Our descriptor
|
static class |
RateLimitBranchProperty.JobPropertyImpl |
static class |
RateLimitBranchProperty.QueueTaskDispatcherImpl
This does the work of blocking builds while the throttle is enforced.
|
static class |
RateLimitBranchProperty.Throttle
This class is to work around some annoying "features" of f:optionalBlock
|
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
RateLimitBranchProperty(int count,
String durationName)
Deprecated.
|
RateLimitBranchProperty(int count,
String durationName,
boolean userBoost)
Constructor for stapler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the maximum builds within the duration.
|
String |
getDurationName()
Gets the duration.
|
boolean |
isUserBoost()
Gets the user boost setting.
|
<P extends Job<P,B>,B extends Run<P,B>> |
jobDecorator(Class<P> jobType)
Returns a
JobDecorator for the specific job type. |
asArrayList, decorator, decorator, getDescriptor@Deprecated public RateLimitBranchProperty(int count, String durationName)
count - the maximum builds within the duration.durationName - the name of the duration.@DataBoundConstructor
public RateLimitBranchProperty(int count,
String durationName,
boolean userBoost)
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.public int getCount()
public String getDurationName()
public boolean isUserBoost()
public <P extends Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
JobDecorator for the specific job type.jobDecorator in class BranchPropertyP - the type of job.B - the type of run of the job.jobType - the job class.JobDecorator or null if none appropriate to this type of job.Copyright © 2016–2019. All rights reserved.