Package org.ametys.core.schedule
Enum Runnable.FireProcess
- java.lang.Object
-
- java.lang.Enum<Runnable.FireProcess>
-
- org.ametys.core.schedule.Runnable.FireProcess
-
- All Implemented Interfaces:
Serializable
,Comparable<Runnable.FireProcess>
- Enclosing interface:
- Runnable
public static enum Runnable.FireProcess extends Enum<Runnable.FireProcess>
The possible ways to fire the runnable
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Runnable.FireProcess
valueOf(String name)
Returns the enum constant of this type with the specified name.static Runnable.FireProcess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final Runnable.FireProcess NEVER
Never fired
-
STARTUP
public static final Runnable.FireProcess STARTUP
Fired during the next application startup
-
NOW
public static final Runnable.FireProcess NOW
Fired once as soon as possible.
-
CRON
public static final Runnable.FireProcess CRON
Based on a cron expression.
-
-
Method Detail
-
values
public static Runnable.FireProcess[] 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 (Runnable.FireProcess c : Runnable.FireProcess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Runnable.FireProcess 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
-
-