Package com.sodius.oslc.server.core.jobs
Enum JobSchedule.Type
- java.lang.Object
-
- java.lang.Enum<JobSchedule.Type>
-
- com.sodius.oslc.server.core.jobs.JobSchedule.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<JobSchedule.Type>
- Enclosing class:
- JobSchedule
public static enum JobSchedule.Type extends Enum<JobSchedule.Type>
Determines the type of schedule.- Since:
- 3.11.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
Indicates the job is disabled and shall not run.FIXED_DELAY
Indicates the job is to run periodically with a given delay.FIXED_RATE
Indicates the job is to run at fixed rate, at given hour and minute, each day.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JobSchedule.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static JobSchedule.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED_RATE
public static final JobSchedule.Type FIXED_RATE
Indicates the job is to run at fixed rate, at given hour and minute, each day.
-
FIXED_DELAY
public static final JobSchedule.Type FIXED_DELAY
Indicates the job is to run periodically with a given delay.
-
DISABLED
public static final JobSchedule.Type DISABLED
Indicates the job is disabled and shall not run.
-
-
Method Detail
-
values
public static JobSchedule.Type[] 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 (JobSchedule.Type c : JobSchedule.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobSchedule.Type 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
-
-