Package jenkins.branch
Class RateLimitBranchProperty.JobPropertyImpl
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
- Enclosing class:
- RateLimitBranchProperty
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.JobProperty
owner
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Gets the maximum builds within the duration.long
Gets the duration.Gets the duration name.long
Returns the minimum time between builds required to enforce the throttle.Returns theRateLimitBranchProperty.Throttle
.boolean
Gets the user boost setting.Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
Constructor Details
-
JobPropertyImpl
Constructor.- Parameters:
throttle
- the throttle.
-
-
Method Details
-
getCount
public int getCount()Gets the maximum builds within the duration.- Returns:
- the maximum builds within the duration.
-
getDurationName
Gets the duration name.- Returns:
- the duration name.
-
isUserBoost
public boolean isUserBoost()Gets the user boost setting.- Returns:
- the user boost setting.
-
getDuration
public long getDuration()Gets the duration.- Returns:
- the duration.
-
getThrottle
Returns theRateLimitBranchProperty.Throttle
.- Returns:
- the
RateLimitBranchProperty.Throttle
ornull
if there is none.
-
getMillisecondsBetweenBuilds
public long getMillisecondsBetweenBuilds()Returns the minimum time between builds required to enforce the throttle.- Returns:
- the minimum time between builds required to enforce the throttle.
-