Class MySQLBuilder

java.lang.Object
io.vertx.mutiny.mysqlclient.MySQLBuilder
All Implemented Interfaces:
MutinyDelegate

public class MySQLBuilder extends Object implements MutinyDelegate
Entry point for building MySQL clients.

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

See Also:
  • MySQLBuilder
  • Field Details

  • Constructor Details

    • MySQLBuilder

      public MySQLBuilder(io.vertx.mysqlclient.MySQLBuilder delegate)
      Create a new instance of MySQLBuilder delegating to the given (non-null) instance of MySQLBuilder.
    • MySQLBuilder

      public MySQLBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.mysqlclient.MySQLBuilder getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • pool

      public static Pool pool(Consumer<ClientBuilder<Pool>> block)
      Build a pool with the specified block argument. The block argument is usually a lambda that configures the provided builder

      Example usage: Pool pool = PgBuilder.pool(builder -> builder.connectingTo(connectOptions));

      Returns:
      the pool as configured by the code block
    • pool

      public static ClientBuilder<Pool> pool()
      Provide a builder for MySQL pool of connections

      Example usage: Pool pool = PgBuilder.pool().connectingTo(connectOptions).build()

    • client

      public static SqlClient client(Consumer<ClientBuilder<SqlClient>> handler)
      Build a client backed by a connection pool with the specified block argument. The block argument is usually a lambda that configures the provided builder

      Example usage: SqlClient client = PgBuilder.client(builder -> builder.connectingTo(connectOptions));

      Returns:
      the client as configured by the code block
    • client

      public static ClientBuilder<SqlClient> client()
      Provide a builder for MySQL client backed by a connection pool.

      Example usage: SqlClient client = PgBuilder.client().connectingTo(connectOptions).build()

    • newInstance

      public static MySQLBuilder newInstance(io.vertx.mysqlclient.MySQLBuilder delegate)
      Creates a new instance of the MySQLBuilder.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object