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
|
Constructor and Description |
---|
RateLimitBranchProperty(int count,
String durationName)
Constructor for stapler.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the maximum builds within the duration.
|
String |
getDurationName()
Gets the duration.
|
<P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> |
jobDecorator(Class<P> jobType)
Returns a
JobDecorator for the specific job type. |
asArrayList, decorator, decorator, getDescriptor
@DataBoundConstructor public RateLimitBranchProperty(int count, String durationName)
count
- the maximum builds within the duration.durationName
- the name of the duration.public int getCount()
public String getDurationName()
public <P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
JobDecorator
for the specific job type.jobDecorator
in class BranchProperty
P
- 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–2017. All rights reserved.