public interface NotificationOptions
Event.fireAsync(Object, NotificationOptions)
Modifier and Type | Interface and Description |
---|---|
static interface |
NotificationOptions.Builder
Notification options builder.
|
Modifier and Type | Method and Description |
---|---|
static NotificationOptions.Builder |
builder() |
java.lang.Object |
get(java.lang.String optionName) |
java.util.concurrent.Executor |
getExecutor() |
static NotificationOptions |
of(java.lang.String optionName,
java.lang.Object optionValue) |
static NotificationOptions |
ofExecutor(java.util.concurrent.Executor executor) |
java.util.concurrent.Executor getExecutor()
java.lang.Object get(java.lang.String optionName)
optionName
- name of the option to get value ofnull
if no option for the given name existsstatic NotificationOptions ofExecutor(java.util.concurrent.Executor executor)
executor
- a specific Executor
to handle observer notificationstatic NotificationOptions of(java.lang.String optionName, java.lang.Object optionValue)
optionName
- name of the option to setoptionValue
- value for the optionstatic NotificationOptions.Builder builder()