Package javax.enterprise.event
Class ImmutableNotificationOptions
- java.lang.Object
-
- javax.enterprise.event.ImmutableNotificationOptions
-
- All Implemented Interfaces:
NotificationOptions
class ImmutableNotificationOptions extends java.lang.Object implements NotificationOptions
The immutable implementation ofNotificationOptions
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ImmutableNotificationOptions.Builder
-
Constructor Summary
Constructors Modifier Constructor Description private
ImmutableNotificationOptions(java.util.concurrent.Executor executor, java.util.Map<java.lang.String,java.lang.Object> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name)
java.util.concurrent.Executor
getExecutor()
-
-
-
Method Detail
-
getExecutor
public java.util.concurrent.Executor getExecutor()
- Specified by:
getExecutor
in interfaceNotificationOptions
- Returns:
- the executor used to execute an asynchronous event
-
get
public java.lang.Object get(java.lang.String name)
- Specified by:
get
in interfaceNotificationOptions
- Parameters:
name
- name of the option to get value of- Returns:
- the value of an option or
null
if no option for the given name exists
-
-