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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Gets the maximum builds within the duration.Gets the duration.booleanGets 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- iftruethen 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.
-