Class ClientBuilder<C>

java.lang.Object
io.vertx.mutiny.sqlclient.ClientBuilder<C>
All Implemented Interfaces:
MutinyDelegate

public class ClientBuilder<C> extends Object implements MutinyDelegate
Builder for SqlClient instances.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • ClientBuilder

      public ClientBuilder(io.vertx.sqlclient.ClientBuilder delegate)
    • ClientBuilder

      public ClientBuilder(Object delegate, TypeArg<C> typeArg_0)
    • ClientBuilder

      public ClientBuilder(io.vertx.sqlclient.ClientBuilder delegate, TypeArg<C> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.sqlclient.ClientBuilder getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • with

      public ClientBuilder<C> with(io.vertx.sqlclient.PoolOptions options)
      Parameters:
      options - the pool options
      Returns:
      a reference to this, so the API can be used fluently
    • connectingTo

      public ClientBuilder<C> connectingTo(io.vertx.sqlclient.SqlConnectOptions database)
      Parameters:
      database - the database coordinates
      Returns:
      a reference to this, so the API can be used fluently
    • connectingTo

      public ClientBuilder<C> connectingTo(String database)
      Parameters:
      database - the database URI
      Returns:
      a reference to this, so the API can be used fluently
    • connectingTo

      public ClientBuilder<C> connectingTo(List<io.vertx.sqlclient.SqlConnectOptions> databases)
      Parameters:
      databases - the list of database coordinates
      Returns:
      a reference to this, so the API can be used fluently
    • using

      public ClientBuilder<C> using(Vertx vertx)
      Parameters:
      vertx - the vertx instance
      Returns:
      a reference to this, so the API can be used fluently
    • withConnectHandler

      public ClientBuilder<C> withConnectHandler(Consumer<SqlConnection> handler)
      Parameters:
      handler - the handler
      Returns:
    • build

      public C build()
      Returns:
      the client
    • connectingTo

      public ClientBuilder<C> connectingTo(Supplier<io.smallrye.mutiny.Uni<io.vertx.sqlclient.SqlConnectOptions>> supplier)
      Parameters:
      supplier - the supplier of database coordinates
      Returns:
      a reference to this, so the API can be used fluently
    • newInstance

      public static <C> ClientBuilder<C> newInstance(io.vertx.sqlclient.ClientBuilder arg)
    • newInstance

      public static <C> ClientBuilder<C> newInstance(io.vertx.sqlclient.ClientBuilder arg, TypeArg<C> __typeArg_C)