Package jenkins.branch
Class RateLimitBranchProperty.Throttle
java.lang.Object
jenkins.branch.RateLimitBranchProperty.Throttle
- Enclosing class:
- RateLimitBranchProperty
This class is to work around some annoying "features" of f:optionalBlock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Gets the maximum builds within the duration.Gets the duration.boolean
Gets the user boost setting.
-
Constructor Details
-
Throttle
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 Details
-
getCount
public int getCount()Gets the maximum builds within the duration.- Returns:
- the maximum builds within the duration.
-
getDurationName
Gets the duration.- Returns:
- the duration.
-
isUserBoost
public boolean isUserBoost()Gets the user boost setting.- Returns:
- the user boost setting.
-