Enum TimingType
- java.lang.Object
-
- java.lang.Enum<TimingType>
-
- com.broadleafcommerce.scheduledjob.domain.TimingType
-
- All Implemented Interfaces:
Serializable
,Comparable<TimingType>
public enum TimingType extends Enum<TimingType>
- Author:
- Chad Harchar (charchar)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRON
The associated job should recur based on a cron expression.OFF_SCHEDULE
Used when the job is being executed off-schedule such as a manual request from the admin.TARGET_DATE
The associated job should be run on a target date.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF_SCHEDULE
public static final TimingType OFF_SCHEDULE
Used when the job is being executed off-schedule such as a manual request from the admin.
-
TARGET_DATE
public static final TimingType TARGET_DATE
The associated job should be run on a target date.
-
CRON
public static final TimingType CRON
The associated job should recur based on a cron expression.
-
-
Method Detail
-
values
public static TimingType[] 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 (TimingType c : TimingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimingType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-