public interface WeldNotificationOptions
extends javax.enterprise.event.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 |
| 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 javax.enterprise.event.NotificationOptions |
withParallelMode() |
static javax.enterprise.event.NotificationOptions |
withTimeout(long timeout) |
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 javax.enterprise.event.NotificationOptions withParallelMode()
WeldNotificationOptions.NotificationMode.PARALLELstatic javax.enterprise.event.NotificationOptions withTimeout(long timeout)
timeout - The timeout in millisecondsCopyright © 2008–2019. All rights reserved.