Package org.jobrunr.scheduling
Enum ScheduleExpressionType
- java.lang.Object
-
- java.lang.Enum<ScheduleExpressionType>
-
- org.jobrunr.scheduling.ScheduleExpressionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScheduleExpressionType>
public enum ScheduleExpressionType extends java.lang.Enum<ScheduleExpressionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRON_EXPRESSION
INTERVAL
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Schedule
createSchedule(java.lang.String scheduleExpression)
static Schedule
getSchedule(java.lang.String scheduleExpression)
static ScheduleExpressionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ScheduleExpressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRON_EXPRESSION
public static final ScheduleExpressionType CRON_EXPRESSION
-
INTERVAL
public static final ScheduleExpressionType INTERVAL
-
-
Method Detail
-
values
public static ScheduleExpressionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScheduleExpressionType c : ScheduleExpressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScheduleExpressionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getSchedule
public static Schedule getSchedule(java.lang.String scheduleExpression)
-
createSchedule
public abstract Schedule createSchedule(java.lang.String scheduleExpression)
-
-