Package org.jdeferred2
Enum DeferredManager.StartPolicy
- java.lang.Object
-
- java.lang.Enum<DeferredManager.StartPolicy>
-
- org.jdeferred2.DeferredManager.StartPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DeferredManager.StartPolicy>
- Enclosing interface:
- DeferredManager
public static enum DeferredManager.StartPolicy extends java.lang.Enum<DeferredManager.StartPolicy>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StartPolicy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeferredManager.StartPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DeferredManager.StartPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final DeferredManager.StartPolicy DEFAULT
Let Deferred Manager to determine whether to start the task at its own discretion.
-
AUTO
public static final DeferredManager.StartPolicy AUTO
Tells Deferred Manager to automatically start the task
-
MANUAL
public static final DeferredManager.StartPolicy MANUAL
Tells Deferred Manager that this task will be manually started
-
-
Method Detail
-
values
public static DeferredManager.StartPolicy[] 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 (DeferredManager.StartPolicy c : DeferredManager.StartPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeferredManager.StartPolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-