Package jakarta.enterprise.event
Interface NotificationOptions
- 
public interface NotificationOptionsNotification options are used to configure observer notification.- Since:
 - 2.0
 - Author:
 - Martin Kouba
 - See Also:
 Event.fireAsync(Object, NotificationOptions)
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceNotificationOptions.BuilderNotification options builder. 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static NotificationOptions.Builderbuilder()Objectget(String optionName)ExecutorgetExecutor()static NotificationOptionsof(String optionName, Object optionValue)static NotificationOptionsofExecutor(Executor executor) 
 - 
 
- 
- 
Method Detail
- 
getExecutor
Executor getExecutor()
- Returns:
 - the executor used to execute an asynchronous event
 
 
- 
get
Object get(String optionName)
- Parameters:
 optionName- name of the option to get value of- Returns:
 - the value of an option or 
nullif no option for the given name exists 
 
- 
ofExecutor
static NotificationOptions ofExecutor(Executor executor)
- Parameters:
 executor- a specificExecutorto handle observer notification- Returns:
 - an immutable holder of an executor
 
 
- 
of
static NotificationOptions of(String optionName, Object optionValue)
- Parameters:
 optionName- name of the option to setoptionValue- value for the option- Returns:
 - an immutable holder of a single option
 
 
- 
builder
static NotificationOptions.Builder builder()
- Returns:
 - the options builder
 
 
 - 
 
 -