Package io.vertx.mutiny.mysqlclient
Class MySQLBuilder
java.lang.Object
io.vertx.mutiny.mysqlclient.MySQLBuilder
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMySQLBuilder(io.vertx.mysqlclient.MySQLBuilder delegate) Create a new instance ofMySQLBuilderdelegating to the given (non-null) instance ofMySQLBuilder.MySQLBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientBuilder<SqlClient>client()Provide a builder for MySQL client backed by a connection pool.static SqlClientclient(Consumer<ClientBuilder<SqlClient>> handler) Build a client backed by a connection pool with the specifiedblockargument.booleanio.vertx.mysqlclient.MySQLBuilderGet the delegate instance.inthashCode()static MySQLBuildernewInstance(io.vertx.mysqlclient.MySQLBuilder delegate) Creates a new instance of theMySQLBuilder.static ClientBuilder<Pool>pool()Provide a builder for MySQL pool of connectionsstatic Poolpool(Consumer<ClientBuilder<Pool>> block) Build a pool with the specifiedblockargument.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MySQLBuilder
public MySQLBuilder(io.vertx.mysqlclient.MySQLBuilder delegate) Create a new instance ofMySQLBuilderdelegating to the given (non-null) instance ofMySQLBuilder. -
MySQLBuilder
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
pool
Build a pool with the specifiedblockargument. Theblockargument is usually a lambda that configures the provided builderExample usage:
Pool pool = PgBuilder.pool(builder -> builder.connectingTo(connectOptions));- Returns:
- the pool as configured by the code
block
-
pool
Provide a builder for MySQL pool of connectionsExample usage:
Pool pool = PgBuilder.pool().connectingTo(connectOptions).build() -
client
Build a client backed by a connection pool with the specifiedblockargument. Theblockargument is usually a lambda that configures the provided builderExample usage:
SqlClient client = PgBuilder.client(builder -> builder.connectingTo(connectOptions));- Returns:
- the client as configured by the code
block
-
client
Provide a builder for MySQL client backed by a connection pool.Example usage:
SqlClient client = PgBuilder.client().connectingTo(connectOptions).build() -
newInstance
Creates a new instance of theMySQLBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-