Package jenkins.branch
Class RateLimitBranchProperty.JobPropertyImpl
- All Implemented Interfaces:
ExtensionPoint,Describable<JobProperty<?>>,ReconfigurableDescribable<JobProperty<?>>,BuildStep
- Enclosing class:
- RateLimitBranchProperty
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor.Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.JobProperty
ownerFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Gets the maximum builds within the duration.longGets the duration.Gets the duration name.longReturns the minimum time between builds required to enforce the throttle.Returns theRateLimitBranchProperty.Throttle.booleanGets the user boost setting.Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, 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.Throttleornullif 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.
-