Class Events


  • public final class Events
    extends Object
    • Method Detail

      • fire

        public static <E> CompletionStage<E> fire​(jakarta.enterprise.event.Event<E> event,
                                                  E payload)
        Fires the CDI event synchronously and asynchronously.

        An exception thrown from the notification of synchronous observers is not re-thrown.

        Type Parameters:
        E -
        Parameters:
        event -
        payload -
        Returns:
        the completion stage from the asynchronous notification