Package io.quarkus.arc.runtime
Class NonBlockingSupport
java.lang.Object
io.quarkus.arc.runtime.NonBlockingSupport
Utility class that allows invoking non-blocking startup methods on non-blocking threads when the Quarkus Vert.x
extension is present (which provides us with support for this). This is used to avoid a circular dependency with
it. This is also checked at build time so we should never have a runtime error.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TsubscribeAndAwait(Supplier<io.smallrye.mutiny.Uni<T>> uniSupplier) Delegates this call to the declaredNonBlockingProviderimplementation, hopefully Quarkus Vert.x, if it is available.
-
Field Details
-
ERROR_MSG
- See Also:
-
-
Constructor Details
-
NonBlockingSupport
public NonBlockingSupport()
-
-
Method Details
-
subscribeAndAwait
public static <T> T subscribeAndAwait(Supplier<io.smallrye.mutiny.Uni<T>> uniSupplier) throws Throwable Delegates this call to the declaredNonBlockingProviderimplementation, hopefully Quarkus Vert.x, if it is available.- Throws:
RuntimeException- if the Quarkus Vert.x extension is not present.Throwable- See Also:
-