Class BreakProfile
- java.lang.Object
-
- com.kraken.api.core.script.breakhandler.BreakProfile
-
public class BreakProfile extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BreakProfile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BreakProfilecreateAggressive()static BreakProfilecreateBalanced()static BreakProfilecreateConservative()java.time.DurationgetNextBreakDuration()Calculates the next break duration based on profile settings.java.time.DurationgetNextRunDuration()Calculates the next runtime duration based on profile settings.
-
-
-
Method Detail
-
getNextRunDuration
public java.time.Duration getNextRunDuration()
Calculates the next runtime duration based on profile settings.- Returns:
- The duration of the next run
-
getNextBreakDuration
public java.time.Duration getNextBreakDuration()
Calculates the next break duration based on profile settings.- Returns:
- The duration of the next break
-
createConservative
public static BreakProfile createConservative()
-
createAggressive
public static BreakProfile createAggressive()
-
createBalanced
public static BreakProfile createBalanced()
-
-