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 class
SchedulerSettings.Throttle
-
Field Summary
Fields Modifier and Type Field Description List<SchedulerSettings.Throttle>
buildThrottle
static Duration
DEFAULT_MAX_BUILD_TIME
Duration
maxDuration
static int
NO_RESTRICTION
-
Constructor Summary
Constructors Constructor Description SchedulerSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addThrottle(SchedulerSettings.Throttle... throttles)
int
getAllowedExecutors(LocalTime currentTime)
Get number of allowed executors based on current time or -1 if the number of current executors is not restricted.void
setThrottles(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.
-
-