Package io.smallrye.graphql.client.vertx
Class VertxManager
java.lang.Object
io.smallrye.graphql.client.vertx.VertxManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.core.Future<Void> static io.vertx.core.Vertxget()The priority where to obtain a Vert.x instance: 1.static voidsetFromGlobal(io.vertx.core.Vertx vertx)
-
Constructor Details
-
VertxManager
public VertxManager()
-
-
Method Details
-
get
public static io.vertx.core.Vertx get()The priority where to obtain a Vert.x instance: 1. The instance passed by the user to the client builder (not handled by this class) 2. The global Vertx instance that was set by calling `setFromGlobal` 3. Attempt to locate Vertx using the current thread context 4. Create our own custom instance (in case that multiple clients fall through into here, use only one instance for all) -
setFromGlobal
public static void setFromGlobal(io.vertx.core.Vertx vertx) -
closeCustomInstance
-