Class SchedulerSettings
- java.lang.Object
 - 
- eu.royalsloth.depbuilder.dsl.scheduling.SchedulerSettings
 
 
- 
public class SchedulerSettings extends Object
Settings container used for managing plugin build scheduler 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchedulerSettings.Throttle 
- 
Field Summary
Fields Modifier and Type Field Description List<SchedulerSettings.Throttle>buildThrottlestatic DurationDEFAULT_MAX_BUILD_TIMEDurationmaxDurationstatic intNO_RESTRICTION 
- 
Constructor Summary
Constructors Constructor Description SchedulerSettings() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddThrottle(SchedulerSettings.Throttle... throttles)intgetAllowedExecutors(LocalTime currentTime)Get number of allowed executors based on current time or -1 if the number of current executors is not restricted.voidsetThrottles(List<SchedulerSettings.Throttle> throttles) 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_MAX_BUILD_TIME
public static final Duration DEFAULT_MAX_BUILD_TIME
 
- 
NO_RESTRICTION
public static final int NO_RESTRICTION
- See Also:
 - Constant Field Values
 
 
- 
maxDuration
public Duration maxDuration
 
- 
buildThrottle
public List<SchedulerSettings.Throttle> buildThrottle
 
 - 
 
- 
Method Detail
- 
addThrottle
public void addThrottle(SchedulerSettings.Throttle... throttles)
 
- 
setThrottles
public void setThrottles(List<SchedulerSettings.Throttle> throttles)
 
- 
getAllowedExecutors
public int getAllowedExecutors(LocalTime currentTime)
Get number of allowed executors based on current time or -1 if the number of current executors is not restricted. 
 - 
 
 -