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>,java.lang.constant.Constable
- Enclosing interface:
- WeldNotificationOptions
public static enum WeldNotificationOptions.NotificationMode
extends Enum<WeldNotificationOptions.NotificationMode>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if thisWeldNotificationOptions.NotificationModeenum is equal to the provided parameter.Attempts to convert provided parameter intoWeldNotificationOptions.NotificationMode.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SERIAL
Async observers are notified serially in a single worker thread (default behavior). -
PARALLEL
Async observers are notified in parallel assuming that theExecutorused supports parallel execution.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Determines if thisWeldNotificationOptions.NotificationModeenum is equal to the provided parameter.- Parameters:
value- object to compare tothis- Returns:
- true if there is equality, false otherwise
-
of
Attempts to convert provided parameter intoWeldNotificationOptions.NotificationMode. May returnnullif the provided parameter isnullor if there was an exception. If the provided parameter is an instance ofWeldNotificationOptions.NotificationModea type cast is executed; otherwiseEnum.valueOf(Class, String)is used for conversion.- Parameters:
value- object for conversion toWeldNotificationOptions.NotificationMode- Returns:
- instance of
WeldNotificationOptions.NotificationModeor null
-