Package jenkins.branch
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Gets the maximum builds within the duration.String
getDurationName()
Gets the duration.boolean
isUserBoost()
Gets the user boost setting.
-
-
-
Constructor Detail
-
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
- iftrue
then user submitted builds will skip the queue.
-
-
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.
-
-