Package io.vertx.mutiny.mysqlclient
Class MySQLPool
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.SqlClient
-
- io.vertx.mutiny.sqlclient.Pool
-
- io.vertx.mutiny.mysqlclient.MySQLPool
-
public class MySQLPool extends Pool
A ofMySQL Connections
. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MySQLPool>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlClient
client(Vertx vertx, io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
static SqlClient
client(Vertx vertx, String connectionUri)
static SqlClient
client(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)
static SqlClient
client(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> mySQLConnectOptions, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(Vertx vertx, List<io.vertx.mysqlclient.MySQLConnectOptions> mySQLConnectOptions, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
static SqlClient
client(String connectionUri)
static SqlClient
client(String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)
static SqlClient
client(Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
MySQLPool
connectHandler(Consumer<SqlConnection> handler)
MySQLPool
connectionProvider(Function<Context,io.smallrye.mutiny.Uni<SqlConnection>> provider)
boolean
equals(Object o)
io.vertx.mysqlclient.MySQLPool
getDelegate()
int
hashCode()
static MySQLPool
newInstance(io.vertx.mysqlclient.MySQLPool arg)
static MySQLPool
pool(Vertx vertx, io.vertx.mysqlclient.MySQLConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(Vertx vertx, String connectionUri)
static MySQLPool
pool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(Vertx vertx, List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(io.vertx.mysqlclient.MySQLConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(String connectionUri)
static MySQLPool
pool(String connectionUri, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
static MySQLPool
pool(List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
String
toString()
-
Methods inherited from class io.vertx.mutiny.sqlclient.Pool
close, closeAndAwait, closeAndForget, getConnection, getConnectionAndAwait, getConnectionAndForget, newInstance, pool, pool, pool, preparedQuery, query, size, withConnection, withConnectionAndAwait, withConnectionAndForget, withTransaction, withTransaction, withTransactionAndAwait, withTransactionAndAwait, withTransactionAndForget, withTransactionAndForget
-
Methods inherited from class io.vertx.mutiny.sqlclient.SqlClient
newInstance, preparedQuery
-
-
-
-
Constructor Detail
-
MySQLPool
public MySQLPool(io.vertx.mysqlclient.MySQLPool delegate)
-
MySQLPool
public MySQLPool(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.mysqlclient.MySQLPool getDelegate()
- Overrides:
getDelegate
in classPool
-
pool
public static MySQLPool pool(String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
connectionUri
-options
-- Returns:
-
pool
public static MySQLPool pool(Vertx vertx, String connectionUri)
- Parameters:
vertx
-connectionUri
-- Returns:
-
pool
public static MySQLPool pool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-connectionUri
-options
-- Returns:
-
pool
public static MySQLPool pool(io.vertx.mysqlclient.MySQLConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
database
- the options for the connectionoptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static MySQLPool pool(Vertx vertx, io.vertx.mysqlclient.MySQLConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-database
-options
-- Returns:
-
pool
public static MySQLPool pool(List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the list of serversoptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static MySQLPool pool(Vertx vertx, List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-databases
-options
-- Returns:
-
client
public static SqlClient client(String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
connectionUri
-poolOptions
-- Returns:
-
client
public static SqlClient client(Vertx vertx, String connectionUri)
- Parameters:
vertx
-connectionUri
-- Returns:
-
client
public static SqlClient client(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
vertx
-connectionUri
-poolOptions
-- Returns:
-
client
public static SqlClient client(io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
connectOptions
-poolOptions
- the options for creating the backing pool- Returns:
- the client
-
client
public static SqlClient client(Vertx vertx, io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
vertx
-connectOptions
-poolOptions
-- Returns:
-
client
public static SqlClient client(Vertx vertx, List<io.vertx.mysqlclient.MySQLConnectOptions> mySQLConnectOptions, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-mySQLConnectOptions
-options
-- Returns:
-
client
public static SqlClient client(List<io.vertx.mysqlclient.MySQLConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the list of databasesoptions
- the options for creating the pool- Returns:
- the pooled client
-
connectHandler
public MySQLPool connectHandler(Consumer<SqlConnection> handler)
- Overrides:
connectHandler
in classPool
- Parameters:
handler
- the handler- Returns:
-
connectionProvider
public MySQLPool connectionProvider(Function<Context,io.smallrye.mutiny.Uni<SqlConnection>> provider)
- Overrides:
connectionProvider
in classPool
- Parameters:
provider
- the new connection provider- Returns:
- a reference to this, so the API can be used fluently
-
pool
public static MySQLPool pool(Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the server supplieroptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static MySQLPool pool(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-databases
-options
-- Returns:
-
client
public static SqlClient client(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> mySQLConnectOptions, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-mySQLConnectOptions
-options
-- Returns:
-
client
public static SqlClient client(Supplier<io.smallrye.mutiny.Uni<io.vertx.mysqlclient.MySQLConnectOptions>> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the databases supplieroptions
- the options for creating the pool- Returns:
- the pooled client
-
newInstance
public static MySQLPool newInstance(io.vertx.mysqlclient.MySQLPool arg)
-
-