Package org.cyclos.model.utils
Enum RecurringTaskFirstExecution
- java.lang.Object
-
- java.lang.Enum<RecurringTaskFirstExecution>
-
- org.cyclos.model.utils.RecurringTaskFirstExecution
-
- All Implemented Interfaces:
Serializable,Comparable<RecurringTaskFirstExecution>
public enum RecurringTaskFirstExecution extends Enum<RecurringTaskFirstExecution>
When the recurring task first execution must starts.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecurringTaskFirstExecutionvalueOf(String name)Returns the enum constant of this type with the specified name.static RecurringTaskFirstExecution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOW
public static final RecurringTaskFirstExecution NOW
As soon as possible after the server has started.
-
RANDOM
public static final RecurringTaskFirstExecution RANDOM
A random time between 0 and the recurring task recurrence. E.g: if the task runs every hour then the first execution will be between 0 and 1 hour.
-
NEXT
public static final RecurringTaskFirstExecution NEXT
The first execution will match the task recurrence. E.g: if the task runs every hour then the first execution will be in one hour.
-
-
Method Detail
-
values
public static RecurringTaskFirstExecution[] 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 (RecurringTaskFirstExecution c : RecurringTaskFirstExecution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecurringTaskFirstExecution 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
-
-