Package org.jboss.weld.events
Enum WeldNotificationOptions.NotificationMode
- java.lang.Object
-
- java.lang.Enum<WeldNotificationOptions.NotificationMode>
-
- org.jboss.weld.events.WeldNotificationOptions.NotificationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<WeldNotificationOptions.NotificationMode>
- Enclosing interface:
- WeldNotificationOptions
public static enum WeldNotificationOptions.NotificationMode extends Enum<WeldNotificationOptions.NotificationMode>
- See Also:
WeldNotificationOptions.MODE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEqual(Object value)
static WeldNotificationOptions.NotificationMode
of(Object value)
static WeldNotificationOptions.NotificationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static WeldNotificationOptions.NotificationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERIAL
public static final WeldNotificationOptions.NotificationMode SERIAL
Async observers are notified serially in a single worker thread (default behavior).
-
PARALLEL
public static final WeldNotificationOptions.NotificationMode PARALLEL
Async observers are notified in parallel assuming that theExecutor
used supports parallel execution.
-
-
Method Detail
-
values
public static WeldNotificationOptions.NotificationMode[] 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 (WeldNotificationOptions.NotificationMode c : WeldNotificationOptions.NotificationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeldNotificationOptions.NotificationMode 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
-
isEqual
public boolean isEqual(Object value)
-
of
public static WeldNotificationOptions.NotificationMode of(Object value)
-
-