Package io.quarkus.vertx
Class VertxContextSupport
- java.lang.Object
-
- io.quarkus.vertx.VertxContextSupport
-
public final class VertxContextSupport extends Object
Provides utility methods to work with Vertx duplicated context.- See Also:
VertxContext
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
subscribeAndAwait(Supplier<io.smallrye.mutiny.Uni<T>> uniSupplier)
Subscribes to the suppliedUni
on a Vertx duplicated context; blocks the current thread and waits for the result.
-
-
-
Method Detail
-
subscribeAndAwait
public static <T> T subscribeAndAwait(Supplier<io.smallrye.mutiny.Uni<T>> uniSupplier) throws Throwable
Subscribes to the suppliedUni
on a Vertx duplicated context; blocks the current thread and waits for the result.If it's necessary, the CDI request context is activated during execution of the asynchronous code.
- Parameters:
uniSupplier
-- Throws:
IllegalStateException
- If called on an event loop thread.Throwable
-
-