Package javax.enterprise.event
Interface NotificationOptions
public interface NotificationOptions
Notification options are used to configure observer notification.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Notification options builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationOptions.Builder
builder()
static NotificationOptions
static NotificationOptions
ofExecutor
(Executor executor)
-
Method Details
-
getExecutor
Executor getExecutor()- Returns:
- the executor used to execute an asynchronous event
-
get
- Parameters:
optionName
- name of the option to get value of- Returns:
- the value of an option or
null
if no option for the given name exists
-
ofExecutor
- Parameters:
executor
- a specificExecutor
to handle observer notification- Returns:
- an immutable holder of an executor
-
of
- Parameters:
optionName
- name of the option to setoptionValue
- value for the option- Returns:
- an immutable holder of a single option
-
builder
- Returns:
- the options builder
-