Class VertxManager

java.lang.Object
io.smallrye.graphql.client.vertx.VertxManager

public class VertxManager extends Object
  • 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

      public static io.vertx.core.Future<Void> closeCustomInstance()