public interface WeldNotificationOptions extends NotificationOptions
Event.fireAsync(Object, NotificationOptions)
method allows to configure the notification of asynchronous observer methods.
Weld defines the following non-portable options:
Event.fireAsync(Object, NotificationOptions)
Modifier and Type | Interface and Description |
---|---|
static class |
WeldNotificationOptions.NotificationMode |
NotificationOptions.Builder
Modifier and Type | Field and Description |
---|---|
static String |
MODE
Makes it possible to specify that observer methods should be notified in parallel (if supported).
|
static String |
TIMEOUT
Makes it possible to specify a timeout (in milliseconds) after which the returned completion stage must be completed.
|
Modifier and Type | Method and Description |
---|---|
static NotificationOptions |
withParallelMode() |
static NotificationOptions |
withTimeout(long timeout) |
builder, get, getExecutor, of, ofExecutor
static final String MODE
static final String TIMEOUT
If the time expires the stage is completed exceptionally with a CompletionException
holding the
TimeoutException
as its cause. The expiration does not abort the notification of the observers.
static NotificationOptions withParallelMode()
WeldNotificationOptions.NotificationMode.PARALLEL
static NotificationOptions withTimeout(long timeout)
timeout
- The timeout in millisecondsCopyright © 2019 JBoss by Red Hat. All rights reserved.