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