Package io.smallrye.graphql.client.vertx
Class VertxManager
- java.lang.Object
-
- io.smallrye.graphql.client.vertx.VertxManager
-
public class VertxManager extends Object
-
-
Constructor Summary
Constructors Constructor Description VertxManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.vertx.core.Future<Void>closeCustomInstance()static io.vertx.core.Vertxget()The priority where to obtain a Vert.x instance: 1.static voidsetFromGlobal(io.vertx.core.Vertx vertx)
-
-
-
Method Detail
-
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
public static io.vertx.core.Future<Void> closeCustomInstance()
-
-